datetime format
- 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 have format the date field in the below format. How can I do it? please advise
yyyy-mm-ddThh:mm:ss
Solved! Go to Solution.
- Labels:
- Date Time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @vsalver!
This article should provide all of the details that you need to solve your problem: https://help.alteryx.com/current/Reference/DateTimeFunctions.htm
Once you have read that over, if you still have questions, please provide more details on what your current field looks like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @vsalver
Are you asking how to convert this do a datetime field?
The easiest way will be to use the datetimeparse tool, with custom format of yyyy-mm-ddThh:mm:ss
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
My original date field is in yyyymmdd format and I need covert it to yyyy-mm-ddT00:00:00 format. And also I'm seeing the drop down list to select the string field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Arr, I believe @LordNeilLord and @Kenda thought you wanted to convert from that format not to.
In that case it's quite straight forward.
Firstly use the datetime tool to convert your yyyymmdd field into yyyy-mm-dd format.
Then you can use a formula tool to add the 'T00:00:00' suffix. See the example image and attached workflow.
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How can I get the yesterday's date in the same format i.e. yyyy-mm-ddT00:00:00 in the formula field
