Alteryx Designer Desktop Discussions

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

Date and Time

JAIN2
6 - Meteoroid
02-FEB-22 05.02.58.000000000 PM

 

Hi All,

Does anyone how to convert above string in a date and time format in AM and PM. I tried this and it works but does not consider AM PM.

DateTimeParse([Field1],'%d-%b-%y %H.%M.%S')

 

Regards,

Rahul Jain

 

 

 

 

 

2 REPLIES 2
Qiu
20 - Arcturus
20 - Arcturus

@JAIN2 
We need use the Specifier '%p' as below

Capture2A.PNG

amruthas2
8 - Asteroid

Hi @JAIN2 

 

Alteryx by default trims milli seconds - seems it is stil not implemented

Add DateTime type with milliseconds - Alteryx Community

 

If milliseconds doesnt impact your calculation much , You can use the below formula, 

 

DateTimeFormat(
ToString(DateTimeParse([Date],'%d-%b-%y %H.%M.%S'))
,'%d-%b-%y %H.%M.%S %p')

amruthas2_0-1644907261982.png

 

 

 

Labels