Convert Date to Weekday
- 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
Hello,
I have a column field labeled "date" and I need an additional column field that can translate the date to the corresponding day of the week.
Example:
Date Weekday
2/18/2019 -----> Monday
I have the Date field, but need to populate the Weekday field, does anyone know how to do this? Thank you!
Solved! Go to Solution.
- Labels:
- Date Time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try DateTimeformat(DateTimeParse([Date],'%m/%d/%Y'),'%A')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @tessaenns !
Try this formula out:
DateTimeFormat([Date],"%A")
Your date field needs to be in Date format for the above to work. If it isn't, use the DateTimeParse function first, or the DateTime Parse tool.
Cheers!!
Esther
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can find information on Alteryx DateTime functions and formats here:
https://help.alteryx.com/10.1/Reference/DateTimeFunctions.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you David, this worked beautifully! When the data type is set as V_String, the formula worked like a charm!
- 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
Simplest option I can think of is below. Then use Text to columns to split using Comma (,) as delimiter
