SOLVED
Converting Text To Date When Data Has 2 Different Formats
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
fatihsub
6 - Meteoroid
07-02-2018
02:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Normally I use DateTime under parse menu to change text formatted date.
However, I realized that my main data file has different time formats. That is because the main data file is a combination of multiple files which are appended from files coming from multiple sources. Apparently when downloading, some sources formatted date as MM/DD/YYYY while the others are formatted as DD/MM/YYYY.
Is there an easy way to determine if the file is using MM/DD/YYYY or DD/MM/YYYY before merging them so that the combined file has one standard date format?
Thanks,
Fatih
Solved! Go to Solution.
Labels:
- Labels:
- Date Time
2 REPLIES 2
ACE Emeritus
07-02-2018
02:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I would consider using the BB date macro on the Altertx Gallery, it converts multiple date types in the same field and you don't have to specify the structure either.
Link below...
https://community.alteryx.com/t5/Engine-Works-Blog/Introducing-BB-Date-Date-Parsing-for-the-Rest-of-...
Ben
Link below...
https://community.alteryx.com/t5/Engine-Works-Blog/Introducing-BB-Date-Date-Parsing-for-the-Rest-of-...
Ben
07-02-2018
03:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks Ben for pointing out the macro.
That saved me a lot of time!
Fatih

