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
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

Is it possible to use CASE to replace 4712/12/31 with CURRENT_DATE

Content (please ensure you mask any confidential information):

I'm using the Compensation - Salary History Details Real Time to return the "Salary Details"."To Date" field, if the end date is null the field returns 4712/12/31, I need this to return CURRENT_DATE so that I can calculate the working days between the salary start and end date.

I have tried to case as below, but it hasn't worked.

CASE WHEN "Salary Details"."To Date" IN ('4712/12/31') THEN 'CURRENT_DATE'
ELSE "Salary Details"."To Date" END


Alternatively is it possible to amend the "Salary History"."Days Since Last Salary Change" to exlcude weekends?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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