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

Creating new column as Month (MMM) from date

Adam_B
8 - Asteroid

Hello, 

 

I have a date set, 01/01/2023 that I want to add a new column to output the Month name, so in the example I would like JAN as the output.  

Adam_B_0-1682976027126.png

I tried this formula, 

DateTimeFormat([APH REQ Action Date],"%B")

 

However, the output is all NULLs. 

 

Any help would be appreciated. 

 

Thanks, 

Adam 

2 REPLIES 2
ShankerV
17 - Castor

Hi @Adam_B 

 

One way of doing this.

 

DateTimeFormat(DateTimeParse([Field1],"%m/%d/%y"),"%b")

 

Note: The formula you have used was right but however the datetime formula will produce successful results if the date is in ISO format YYYY-MM-DD

Hence used datetime parse to convert to ISO format and then applied your formula.

 

ShankerV_0-1682976445068.png

 

ShankerV_1-1682976454766.png

 

ShankerV_2-1682976472677.png

 

Many thanks

Shanker V

 

 

 

Adam_B
8 - Asteroid

@ShankerV That worked, thank you!

Labels
Top Solution Authors