converting number to date time
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
HI All,
how to convert number to date time field in alteryx. below formula is not working for me. Please suggest.
DateTimeAdd(DateTimeAdd("1899-12-30 00:00:00",TODATE(Field),"days"),86400*TODATETIME([Field]),"seconds")
Field |
44378.0024 |
44378.00286 |
44378.00317 |
44378.00324 |
44378.00348 |
44378.0038 |
44378.00385 |
44378.00396 |
- Labels:
- Date Time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@atcodedog05 Thanks for your reply, It is dynamic field
when i tried with same i got the blank information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@atcodedog05 when i tried same formula it is not working for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @KNiranjan
Can you try this
ToDateTime(ToNumber([Field ]))
Can you please share a snapshot of the issue you are facing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@atcodedog05 Sorry for my later reply, Here is the error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@atcodedog05 Yes i tried after removing the New1, but still im getting blank data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @KNiranjan
The possibility is there might be leading/trailing spaces can you try this formula
ToDateTime(ToNumber(Trim([Field]," ")))
If this doesn't work can please share me the sample data in files.
