community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
#SANTALYTICS

The highly anticipated Alteryx Community tradition is back! We hope you'll join us!

Learn More
SOLVED

Convert Date to Weekday

Asteroid

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!

Pulsar

Try DateTimeformat(DateTimeParse([Date],'%m/%d/%Y'),'%A')

Magnetar
Magnetar

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

Pulsar

You can find information on Alteryx DateTime functions and formats here:

 

https://help.alteryx.com/10.1/Reference/DateTimeFunctions.htm

Asteroid

Thank you David, this worked beautifully! When the data type is set as V_String, the formula worked like a charm!

 

Capture.JPG

 

 

 

 

 

Labels