Start Free Trial

Alteryx Designer Desktop Discussions

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

Time

ntudev
8 - Asteroid

How do i get the time out of this date 5/24/2022 12:00:00 AM, i just want the date only 5/24/2022.

5 REPLIES 5
IraWatt
17 - Castor
17 - Castor

Hey @ntudev,

Could use the regex tool:

IraWatt_0-1654699704537.png

The regex tool lets you give a regex pattern and parse the result to a new column.

Any questions or issues please ask :)
HTH!
Ira

 

CarliE
Alteryx Alumni (Retired)

@ntudev 

 

To use a formula, you can do the following  -- datetimeformat(DateTimeParse([Field1],'%m/%d/%Y %I:%M:%S %p'),'%m/%d/%Y')

 

If this solved the issue please mark it as a solution to help other members out!

 

Thanks

Carli
IraWatt
17 - Castor
17 - Castor

Alternatively you could use the date time tool to convert you text data to a date data type:

IraWatt_1-1654699915590.png

 

CarliE
Alteryx Alumni (Retired)

@IraWatt  Did that originally and then consolidated :) Good call out!

Carli
binu_acs
21 - Polaris

@ntudev @Another option using string function 

 

substring([Date], 0, FindString([Date],’ ‘)

Labels
Top Solution Authors