Datetime 如何在LogicApp中更改英国日期格式 IM试图将英国输入日期(DD MM YYYY)转换为格式(YYYY MM DD)

Datetime 如何在LogicApp中更改英国日期格式 IM试图将英国输入日期(DD MM YYYY)转换为格式(YYYY MM DD),datetime,azure-logic-apps,date-conversion,formatdatetime,Datetime,Azure Logic Apps,Date Conversion,Formatdatetime,我试过了 "@formatDateTime('15-03-2019','yyyy-MM-dd')" ==> Error 但有一个错误: 'In function 'convertTimeZone', the value provided for date time string '15-03-2019' was not valid. The datetime string must match ISO 8601 format.' 如何转换此输入日期?输入格式为(

我试过了

"@formatDateTime('15-03-2019','yyyy-MM-dd')" ==> Error
但有一个错误:

'In function 'convertTimeZone', the value provided 
for date time string '15-03-2019' was not valid. The datetime 
string must match ISO 8601 format.'
如何转换此输入日期?输入格式为(dd-MM-yyyy),无法更改

我可以很容易地从(MM dd yyyy)转换,如下所示,但我不能从(dd MM yyyy)转换


azure logic app提供的日期和时间函数
无法识别
dd-MM-yyyy
格式的时间戳

经过我的研究,目前还没有可以直接解决这个问题的函数,但是您可以使用和处理这个问题

logic应用程序的工作流如下所示:

formatDataTime
的表达式:

formatDateTime(concat(substring(<your-date-string>,6,4),'-',substring(<your-date-string>,3,2),'-',substring(<your-date-string>,0,2)),'yyyy-MM-dd')
formatDateTime(concat(子字符串(,6,4),'-',子字符串(,3,2),'-',子字符串(,0,2)),'yyyy-MM-dd')

时间戳似乎无法识别
dd-MM-yyyy
,您是否尝试使用拆分来实现您的目标?
formatDateTime(concat(substring(<your-date-string>,6,4),'-',substring(<your-date-string>,3,2),'-',substring(<your-date-string>,0,2)),'yyyy-MM-dd')