Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2003
    Posts
    50

    Unanswered: Retrieving dates correctly

    Hi!

    When I store a date data type like

    INSERT INTO Table VALUES ('1998-05-04')

    and then get the value, I get 98.05.04.

    Is there a way to retrieve the date as I stored or, at least, the date with the complete year?

    Thanks.
    Ah! Não ser eu toda a gente e toda a parte!

  2. #2
    Join Date
    Apr 2003
    Location
    Minneapolis, MN
    Posts
    273
    You can change the Formate of date in Your session by executing following command.

    ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD';

    HTH
    Bhavin

    MS Computer Science
    OCP DBA 9i/8i

  3. #3
    Join Date
    Dec 2003
    Posts
    50
    Thank you very much! That came very handy!
    Ah! Não ser eu toda a gente e toda a parte!

Posting Permissions

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