Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

how to convert date & time in Months

shahnawaz_khan
8 - Asteroid

How to convert below date time in months (Ex. Mon-yy)

 

02-10-2023 01:22

2023-10-04 03:22:33

28-12-2023 11:11

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris
Deano478
12 - Quasar

@shahnawaz_khan Before you receive a solution can you show us what you have tried so far?

rzdodson
12 - Quasar

@shahnawaz_khan here is one approach for you. Drop this in a Formula tool to get it converted over.

 

If Substring([Old Date],2,1)='-' then

Substring([Old Date],6,4)+'-'+Substring([Old Date],3,2)+'-'+Substring([Old Date],0,2)+' ' +Right([Old Date], 5)+":00"

else [Old Date]

endif

Solution.png 

Labels
Top Solution Authors