The nls_date format is MM-DD-YYYY.
We are using to_char in the select statement.
we are trying something like
select TO_DATE(to_char(sysdate,'YYYY-MM-DD'),'YYYY-MM-DD') FROM DUAL;
The above query returns the result:
12-05-2017.
So it is using the nls_date setting.
we have only views in our project. No other oracle objects.
alter session nls_date statement is restricted
without using nls_date how to display the result in YYYY-MM-DD