Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

OIC Date comparison logic

edited Aug 16, 2021 10:16AM in Integration 4 comments

Summary

Trying to compare 2 date values in OIC

Content

Hi,

I am trying to apply a date comparison in a switch.

Date format I am passing in is 'YYYY-MM-DD' (Start Date)

I have tried the following

Start Date > string (xp20:format-dateTime (fn:current-dateTime(), '[Y0001]-[M01]-[D01]' ) )

Start Date > fn:current-date

xsd:date($currentWorker/nsmpr7:thisWorker/nsmpr7:start_date) > xsd:date(string(xp20:format-dateTime(fn:current-dateTime(), "[Y0001]-[M01]-[D01]")))

All are failing at the switch with no error message recorded.

When I log the values in a log file the formats match for approaches 1 & 3 above.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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