In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date time format military time to class room time

DeepakKrish
7 - Meteor

Hi All,

 

I have an one date field in my table it showing the time in military time format like 2018-04-01 18:50:18 but my requirement is I need to convert this to class room time format.

 

O/p should be: 2018-04-01 6:50:18 PM

 

If you have any ideas please help me to resolve this.

 

Thanks,

Deepak.

3 REPLIES 3
ivoller
12 - Quasar

Try DateTimeFormat([Date],"%Y/%m/%d %I:%M:%S %p")

 

See attached

LordNeilLord
15 - Aurora

Hey @DeepakKrish

 

You can use the follow format: %Y-%m-%d %I:%M:%S %P either in the formula tool (dateTimeFormat) or in the dateTime tool

 

This webpage is really helpful https://help.alteryx.com/9.5/Reference/DateTimeFunctions.htm

 

dtParse.PNG

DeepakKrish
7 - Meteor

Thanks It's working..

Labels
Top Solution Authors