Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Convert Date to Weekday

tessaenns
9 - Comet

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!

6 REPLIES 6
DavidP
17 - Castor
17 - Castor

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

estherb47
15 - Aurora
15 - Aurora

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

DavidP
17 - Castor
17 - Castor

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

 

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

tessaenns
9 - Comet

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

 

Capture.JPG

 

 

 

 

 

JITHINPR
8 - Asteroid

My Solution

Sambit_198
5 - Atom

Simplest option I can think of is below. Then use Text to columns to split using Comma (,) as delimiter

Sambit_198_0-1650687913774.png

 

Labels