Alteryx Designer Desktop Discussions

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

date

bh1789
8 - Asteroid

if I have the following:

 

Message Date

2022-01-01 (Date Type)

 

How would I output the following:

Report Month

Jan 2022

 

Thank you!

5 REPLIES 5
Felipe_Ribeir0
16 - Nebula

Hi @bh1789 

 

Use this formula: 

 

DateTimeFormat([Message Date], '%b %Y')

 

Felipe_Ribeir0_0-1667409805574.png

 

gautiergodard
13 - Pulsar

Hey @bh1789

Here you go for one way to do this! 

gautiergodard_0-1667409861356.png

 

IraWatt
17 - Castor
17 - Castor

Hey @bh1789,

You can use the date parse and date format functions to achieve this:

IraWatt_0-1667409949576.png

DateTimeFormat(
DateTimeParse([Message Date],"%y-%m-%d")
,"%b %y")

Date time parse converts your text data to a date data type and then the format converts it back to text in your given format.

 

If your interested in learning more about the datetime functions there is a great cheat sheet Blog here: https://community.alteryx.com/t5/Engine-Works/DateTime-Functions-Cheat-Sheet/ba-p/844353

 

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

 

binuacs
20 - Arcturus

@bh1789 One way of doing this

binuacs_0-1667425887344.png

DateTimeFormat([Message Date],'%b %Y')
bh1789
8 - Asteroid

Thank you!

Labels