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.
SOLVED

Change Date Format

nihou
8 - Asteroid

 

Source Format of YYYYMM

202101
202010
202009

 

Wanted Results Format MMYYYY

012021
102020
092020

 

tried below but did not work: 

DATETIMEFORMAT([Effect Date], "%m%y")

2 REPLIES 2
kelsey_kincaid
12 - Quasar
12 - Quasar

Hi @nihou ,

You'll need to convert your original dates that are formatted as strings to dates before you use your formula. Additionally, you'll want to edit your formula to this:

 

DATETIMEFORMAT([Effect Date], "%m%Y")

 

 

nihou
8 - Asteroid

Thank you @kelsey_kincaid !

Labels
Top Solution Authors