select * from table where trunc(value1)=to_date('25-AUG-15','DD-MON-YY');
This is fine
select * from table where trunc(value1)=to_date('25-AUG-15','DD-Mon-YY');
This returned as well although the valid value should be 25-Aug-15
Even this works,
select * from table where trunc(value1)=to_date('25/AUG/15','DD-MON-YY');
result is returned
And this,
select * from table where trunc(value1) = to_date('25-AUG-15', 'DD-MM-YY');
result is returned
but this works very well
select * from table where trunc(value1) = to_date('25-AUG-15','MMDDYY');
it checks for the month, which is not found and returns error(well parsed!!!)
Why is that format specifier is not performing strict check on the date value supplied?
Thanks.