我有一个需求,我必须在Mule4中把日期从格式'1 January 1970 00:00:00.000'转换为'1970-01-01T00:00:00'。
试试这个
%dw 2.0
output application/json
---
{
Result: "1 January 1970 00:00:00.000" as LocalDateTime {format: "d MMMM yyyy HH:mm:ss.SSS"} as DateTime {format: "yyyy-MM-dd'T'HH:mm:ss"}
}