简体   繁体   English

逻辑应用程序中的 Chnage DateFormat

[英]Chnage DateFormat in Logic apps

There is a date field in my logic app which i am getting data from finops connector.我的逻辑应用程序中有一个日期字段,我正在从 finops 连接器获取数据。 在此处输入图像描述

In JSON assigning the field.在 JSON 赋值字段。 After Parsing Json and create a csv table assinging like this解析 Json 后创建一个 csv 表这样分配在此处输入图像描述

Is there a way for me to format the date using formatDateTime in any of the steps above?有没有办法让我在上述任何步骤中使用 formatDateTime 格式化日期?

Thanks, Vivek谢谢,维维克

I suspect you may have an issue with null values in your array.我怀疑您的数组中的 null 值可能有问题。

You need to check every item and make sure the invoiceDate field contains a valid value.您需要检查每个项目并确保invoiceDate字段包含有效值。

Something like this will help you if you don't filter them out...如果你不过滤掉它们,这样的事情会对你有帮助......

if(equals(item()['invoiceDate'],null),'',formatDateTime(item()['invoiceDate'], 'dd.MM.yyyy'))

... but you will need to decide on the business logic with those items that do have a null invoice date. ...但是您需要确定发票日期为 null 的那些项目的业务逻辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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