Issue when comparing result of to_char(myDate, ‘DAY’) to a string

If you want to be really robust about this then you ought to force the NLS setting to English and apply the “fill mode” format model FM for trimming leading and trailing spaces.

If To_Char(DateC,'fmDAY', 'nls_date_language=english') = 'FRIDAY'
Then ...

Leave a Comment