OIC Date comparison logic
Summary
Trying to compare 2 date values in OICContent
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.
0