DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: date format problem on different machine

  1. #1
    Join Date
    Oct 2003
    Posts
    312

    date format problem on different machine

    the users enter 5/20/2004 from the application, the database stored as May 20, 20004. When he queries the data retrieved as 20/5/2004. but when I queries, it display as 5/20/2004


    any thought about the inconsistent between these machine??

  2. #2
    Join Date
    Nov 2000
    Location
    Israel
    Posts
    268
    NLS_DATE_FORMAT environment variable ?!

  3. #3
    Join Date
    Oct 2003
    Posts
    312
    from the database server:

    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 9.2.0.1.0


    on Oracle client, we use WE8ISO8859P1 and date format dd-mon-yyyy, all across so what reason for this inconsistent display????

    thanks all

  4. #4
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    5/20/2004 from the application
    What are you using for the query? Is it the application? This may well pick up the date format from the OS. If its Windows look at your regional date time settings - the application may use these to display dates.

    If it's SQL*Plus then check the NLS settings as outlined above.

  5. #5
    Join Date
    Nov 2001
    Location
    Planet Earth
    Posts
    116
    Check your NLS_DATE_FORMAT. It always take from machine where you login.
    The man called Zorro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width