在 Azure 数据工厂 V2 中格式化月份

Formatting month in Azure Data Factory V2

如何在 ADFv2 中设置日期表达式的格式,以便获得 1 月的“1”和 10 月的“10”?

我试过使用 formatDateTime(dataset().date, '%M'),但我不确定这是否正确。我正在尝试设置文件夹路径,例如 2019/1/1 和 2018/12/20。

您可以找到所有格式设置选项 here and the function reference here

我认为您不需要 %,以下内容应该可以。

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