ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Format from yyyymm to mm.yyyy

Jeyaraj_M
メテオール

Hi Team,

 

Need a quick help

 

i am trying to convert the format in a column from yyyymm to mm.yyyy when i try to convert the output i am getting as mm.yy and not as mm.yyyy

 

i tried this formula DATETIMEFORMAT(DATETIMEPARSE([Calendar Month/ Year],'%Y%m'),'%m.%y')

 

My source is as below

 

Calendar Month/Year
202002
202002
202002
202005
202006
202007

 

Expected output should be as follows

 

Expected Result
02.2020
02.2020
02.2020
05.2020
06.2020
07.2020
2件の返信2
ImadZidan
クエーサー

Hello @Jeyaraj_M ,

 

Something like this?

 

have a look. I hope it helps.

bhrmitra
ファイアボール

Hi  

 

Using a the formula will give you the desired result 

Formula - DateTimeFormat(DateTimeParse(ToString([Calendar Month/Year]),"%Y%m"),"%m.%Y")

 

1.png

 

If this solves your issue please mark the answer as correct and also hit the like button, if not let me know! I've attached my workflow for you to download if needed.

 

Thanks,

Abhra Mitra

ラベル
トップのソリューション投稿者