Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Convert a Date to Day of the Week

MJep
5 - Atom

Hi All,

 

I am struggling to convert a date field to a day of the week. I have replaced the "|" with "-" and attempted to use a DateTime function with the a DateTimeFormat formula. This returns Null values.

 

Any thoughts?

 

Date                DateTime_Out
12|30|1948     1948-12-30
03|14|1974     1974-03-14
08|22|1958     1958-08-22

 

Thanks,

Mark

2 REPLIES 2
echuong1
Alteryx Alumni (Retired)

You can use the datetimeformat function.

 

echuong1_0-1599659076832.png

 

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @MJep.,

 

You could use the DateTimeFormat() function in a formula tool to convert your DateTime field to the day of the week:

 

DateTimeFormat([DateTime_Out],'%A')

 

If this solves your issue please mark the answer as correct, if not let me know!

 

Regards,

Jonathan 

Labels
Top Solution Authors