2016-05-10 5 views

答えて

0

あなたの入力は次のようなものである場合 -

<?xml version='1.0' encoding='UTF-8'?> 
<root> 
    <createDate>2016-05-08</createDate> 
</root> 

その後、あなたは必要に応じて日付を取得するためにdataweaveコードの下に使用することができます。

date 
2016-05-02 
- それは以下のように出力は以下となります

%dw 1.0 
%output application/csv 
--- 
{ 
    row: { 
     date: (payload.root.createDate as :date) unless 
      (((payload.root.createDate as :date) as :string {format: "E"}) == 'Sun') 
       otherwise ((payload.root.createDate as :date) - |P6D|) 

       } 
} 

- 日が日曜日である場合には、日から6日後を引きます

関連する問題