You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

DateTime Issues : DD-MON-RRRR

edited Nov 15, 2019 7:01AM in Integration 1 comment

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!