DateTime Issues : DD-MON-RRRR
Content
Hi All,
My requirement is to format the input date and subtract one day from the given date. The requirement sounds simple but the date is not getting formatted.
Input Date : DD-MON-RRRR e.g. 01-JAN-2019
string(xp20:format-dateTime($InputDate,'[DD]-[MM]-[YYYY]') - xsd:dayTimeDuration('P1D')) - not working
string(xp20:format-dateTime($InputDate,'[DD]-[MN,*-3]-[YYYY]') - xsd:dayTimeDuration('P1D')) - not working
string(xp20:format-dateTime($InputDate,'[D01]-[MN,*-3]-[Y0001]') - xsd:dayTimeDuration('P1D')) - not working
Thanks,
Ritu
Tagged:
0