Date to String conversion - Alternative methods
- 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
We can convert from date to string as mentioned below -
I want to know how this can be done using formula tool, also vice versa (String to date).
If we have multiple columns to convert, Is it necessary to configure like below? Or it's possible using a single tool -
Please guide.
Solved! Go to Solution.
- Labels:
- Date Time
- Time Series
- 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
Hi @EN6924
If you have multiple columns you could use a multi-field formula tool to facilitate this. The formulas are:
DateTimeParse() To convert string to date
DateTimeFormat() To convert date to string
I personally have this page bookmarked, it's a one stop shop for all the date syntax: DateTime Functions | Alteryx Help
- 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
Hi @binuacs
Thanks for the help, I do have some more queries.
In my data, fields having 'Date' and 'Date-Time' datatype.
What will be the single formula to convert DateTime to String?
Kindly assist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Luke_CJust checked using Multi-field formula and it's working. Thank you 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@EN6924 to convert DateTimne to string you need use the DateTimeFormat() function
https://help.alteryx.com/20214/designer/datetime-functions
