SOLVED
DOUBLE TO DATE
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
AmAm
7 - Meteor
‎05-19-2022
05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I have a date in excel but in Alteryx it switch to double. I want to keep it a date.
In Alteryx What I am trying to get
(this is how it is in the excel file when I input it)
Solved! Go to Solution.
3 REPLIES 3
17 - Castor
‎05-19-2022
05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try using the following and see how you get on:
datetimeformat(ToDateTime(tonumber(<Insert field name>)), '%B %d, %Y %I:%M:%S %p')
The ToNumber() may not be needed in your case. If not, just remove that and try:
datetimeformat(ToDateTime(<Insert field here>), '%B %d, %Y %I:%M:%S %p')
Iirc, Alteryx can't handle milliseconds, though I may be mistaken.
‎05-19-2022
08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@DataNath you saved the day .... Thanks man!!
17 - Castor
‎05-19-2022
08:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
No problem! Happy to help :)
