Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There isn't really a default date format for the product, the <a href="http://docs.oracle.com/cd/E11882_01/server.112/e25513/initparams145.htm" rel="nofollow">reference guide</a> states that the default for <code>NLS_DATE_FORMAT</code> at system level is based on <code>NLS_TERRITORY</code>. Though <a href="http://docs.oracle.com/cd/E11882_01/appdev.112/e25518/adfns_sqltypes.htm#sthref271" rel="nofollow">this</a> says the 'standard' is `DD-MON-RR', and I think that's what you get if you don't specify a value at database level, at least on the platforms I've worked on.</p> <p>When you create a new database the initialisation parameters can include a specific <code>NLS_DATE_FORMAT</code>, and that can be changed later too.</p> <p>But the system-level <code>NLS_DATE_FORMAT</code> can be overridden by the client, the session, or in a <code>TO_CHAR</code> call. You can look in <code>v$nls_parameters</code> to see the system value, and <code>nls_session_parameters</code> to see your current session value. You can change that with <code>alter session</code> if you want to.</p> <p>I'm pretty sure you'll find that PL/SQL Developer is setting the session <code>NLS_DATE_FORMAT</code> to <code>MM/DD/YYYY</code> somewhere in its preferences.</p> <p>Generally it's better to not rely on that value at all, and always use an explicit format mask for display, e.g. <code>TO_CHAR(&lt;column&gt;, 'YYYY-MM-DD HH24:MI:SS')</code>.</p> <p>There's more on <code>NLS_DATE_FORMAT</code> in the globalisation guide <a href="http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch4datetime.htm#i1006547" rel="nofollow">here</a> and <a href="http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch3globenv.htm#i1006817" rel="nofollow">here</a>; and a bit about date display <a href="http://docs.oracle.com/cd/E11882_01/server.112/e25789/tablecls.htm#sthref145" rel="nofollow">here</a>; and an overview of the date format model elements <a href="http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements004.htm#i34924" rel="nofollow">here</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload