- With this way -
SELECT TO_CHAR(NOW(), 'DAY');I can get a day of week name(E.G. MONDAY). - With
SELECT dayofweek(NOW());I can get the number of the day of week. (E.G 1) - QUESTION:
How to convert day of week name to day of week number. (E.G MONDAY -> 1)
SMTH like
TO_NUMBER('MONDAY', 'DAY'); --> 1(just for example, don't working)