SOLVED
Date from excel
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
Kjaer
8 - Asteroid
‎12-29-2022
06:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi
I have an excel fil with a column of dates in the format dd-mm-yyyy. But when I import the file the dates are listed i excelnumber (ex. 28-02-2022 becomes 44620). How can I convert this column to dates again?
Solved! Go to Solution.
Labels:
- Labels:
- Preparation
3 REPLIES 3
Adrian_T
Alteryx Alumni (Retired)
‎12-29-2022
06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @Kjaer, the ToDate formula will work for you here. 😊
Specifically,
ToDate(7000) returns 1919-03-01 as a date.
This previous community post should give your more clarity as well!
gautiergodard
13 - Pulsar
‎12-29-2022
06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
hey @Kjaer
You can use this formula, also attaching workflow for your reference!
if isnull([Field1]) then DateTimeParse(DateTimeAdd(ToDateTime('1900-01-01'),[Field1],'days'),'%Y-%m-%d') else [Field1] endif
Hope this helps!
‎12-29-2022
06:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It works :-)) Thanks.
