Those of you developing applications that utilize Oracle Databases, might have face the ORA-01843 Not a valid month error. This is a major problem because most of us develop applications that use dates as part of their WHERE clause.
Solution : Before executing any SQL statement though code, you must execute the following SQL statement :
ALTER SESSION SET NLS_DATE_FORMAT = 'DD/MM/YYYY' Note that date format may vary depending on your location. This directive for example is used in Greece. |
Great tip! New to Oracle SQL and wasting a lot of time on simple stuff.
Your post just cleared my headache better than ibuprofen!!!!!
Thanks for the POST. I am sure I will use it in the future.
BFL