DateTime in Formula tool
- 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
How to transform the sales date (44075) to the standard date format (2020-09-01) using the DateTime functions in the Formula tool.
- Labels:
- Alteryx Practice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @angelabigham ,
The format that's incoming is a "serial" date. There are lots of posts in the community about converting serial dates to yyyy-mm-dd format; here's a few (always good to read up on all things "dates" since they are so often a stumbling point in most software packages):
However, the short story is that Alteryx can do the conversion for you if you create a new filed using the ToDate() function on your incoming field (just make sure to set the data type to Date in the new field). And you'll have to first change the incoming number to an actual number (since it's a text file, it'll read in as a string field). So you'll want to wrap a ToNumber() function around the incoming field before using the ToDate wrapper.
