Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Date column Formatting

Asad_Ali110
5 - Atom

Hi Guys,

 

I have a date column coming in as string format as shown below

 

13/12/202316,437,454
30-Sep-23301,519
2022-07-17 00:00:0012,242,586

 

in order to convert it, I am using the following formula:

 

"IF IsNull([PAYMENT_DATE]) THEN "" ELSE

IF Contains([PAYMENT_DATE], "/") THEN DateTimeParse([PAYMENT_DATE],'%d/%m/%Y') ELSE

DateTimeParse([PAYMENT_DATE],'%Y-%m-%d') ENDIF ENDIF

"

I know I am missing the bit for the date shown as "DD-MMM-YY", appreciate your help in correcting this formula.

1 REPLY 1
binuacs
20 - Arcturus

@Asad_Ali110 one way of doing this

image.png

Labels