Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Convert strings containing date time values with AM / PM indicators to Datetime value?

Steve3
5 - Atom

I have delimited text files containing datetime strings such as '6/3/2019 4:13:00 AM' or '6/3/2019 4:13:00 PM' or '10/03/2019 11:13:05 PM'.

There doesn't seem to be an input format for dealing with 'AM / PM' times.

How have others handled this situation?

1 REPLY 1
Steve3
5 - Atom

I figured it out and thought I would post the format in case any other newbies have the same issue.

  1. Use the DateTime tool for each date string to be converted.
  2. Enter a New Column name different from the field/column being converted.
  3. Enter the following Custom format %m/%d/%Y %I:%M:%S %p 
  4. Use the Select tool to uncheck the original datetime string.
  5. Rename the new datetime field back to the original if desired.
  6. Move the new field if needed.

 

 

Labels
Top Solution Authors