简体   繁体   中英

Formatting month in Azure Data Factory V2

How do you format the date expression in ADFv2 so that you can get '1' for Jan and '10' for Oct?

I've tried using formatDateTime(dataset().date, '%M') , but I'm not sure this is the correct thing. I'm trying to set the folder paths for example 2019/1/1 and 2018/12/20.

You can find all the formatting options here and the function reference here .

I don't think you need the %, the following should work.

formatDateTime(dataset().date, 'M')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM