sorry, for this situation you must use explicit conversions to get your data the way you want
however, I recommend to ALWAYS use to_date and to_char with an explicit date mask
best practice is to forget the nls_date_format parameter even exists.
since that's probably not possible and it's not possible to turn it off, next best is to set it to something unusable like 'sssss' that way all your developers are forced to use explicit conversions.
with legacy code that's probably not feasible, but something to keep in mind
Main Topics
Browse All Topics





by: schwertnerPosted on 2009-03-20 at 10:03:35ID: 23941362
Using NLS_DATE_FORMAT='YYYY-MM-D D HH24:MI:SS';
you can get the desired result for ALL queries on DATE columns
without using TO_CHAR function.
If yopu need a special format of the DATE you have to code appropriate
format mask in TO_CHAR function.