Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Date Time Question

Hayesb
5 - Atom

I used the following to convert a date/time to only the time.  However, it is changing 2:00 pm to 02:00 instead of 14:00.  I have tried researching and see a lot of examples for %H but when I enter that it only returns "%H" in the field.  

 

Can someone provide an example of how to convert the date/time to a 24 hour time only?

 

To_char ("shipped_date", 'hh:mm')

 

Thanks,

Brett

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @Hayesb 

 

You can use something like this

atcodedog05_0-1605110150447.png

DateTimeParse("01/01/2020 "+[Field1],
'%m/%d/%y %I:%M %p')

Output:

atcodedog05_1-1605110170171.png

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

StephV
Alteryx Alumni (Retired)

Hi @Hayesb,

 

Thank you for your question to the Community!

 

I moved your post to the Designer Discussions forum there you can ask anything technical about Designer. 

 

If this @atcodedog05's post helps you please mark it as solution.

 

This article "Q&A: Where Do I Post My Questions?" should also help you out. 

 

Let us know how it goes!

 

Cheers,

Steph Vitale-Havreng
Labels