converting to dates
- 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
I am trying to convert dates of the format Jan 1, 2011 via the date time tool
However it is not working. Any reason as to why? It only gives Nulls.
Solved! Go to Solution.
- Labels:
- Developer Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Inactive User
When using the DateTime tool, you need to either select an existing configuration, or create one yourself. In your case, there is a default configuration that matches your input. Try and select the marked format in your workflow, and believe it should work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Inactive User
I think it should be something like this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Why won't the one I have work? I am wondering why my configuration is failing? Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What if I want the output to be 01-01-2011?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Inactive User
You have set your expected input as yyyy-MM-dd hh:mm:ss which does not match the date format you have written. Your input starts with "Jan ", but the tool expect the first 4 characters to be the year, hence it fails with a Null value
Regarding the format of the output, Alteryx has a set format for dates when working with the data. If you want to output the data into Excel, then Excel will accept the data as a date and convert it to your default format. If you need Alteryx to output the data elsewhere in that specific format, you can convert it to a text string before outputting
- 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
@Inactive User,
in the date convert you have to choose the input format not the output.
So the format will be mon dd, yyyy.
The output default date format for convert date is yyyy-MM-dd.
Hope that helps,
Best Regards,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
So with a RegEx, we always have to use custom, if I understand correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Inactive User
Basically if you dont have the format in the list then we will be using custom like in the current scenarios.
