24 hour date/ time?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: 24 hour date/ time?

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Saint Louis MO, USA
    Posts
    8

    24 hour date/ time?

    How does one select a 24 hour / type of time from DUAL?

    Iím working on an app where the users are required to work / enter times in a 24 hour format.

    Code:
    -- this works 
    SELECT to_date('16-JUL-2003 12:30:00','DD-MON-YYYY HH:MI:SS') FROM DUAL
    -- this one creates an error Hour must be between 1 and 12 
    SELECT to_date('16-JUL-2003 13:30:00','DD-MON-YYYY HH:MI:SS') FROM DUAL

  2. #2
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    Hi,

    I think this should solve ur problem

    SELECT to_date('16-JUL-2003 13:30:00','DD-MON-YYYY HH24:MI:SS') FROM DUAL

    HTH

    Srini

  3. #3
    Join Date
    Jul 2003
    Location
    Saint Louis MO, USA
    Posts
    8
    Yep. Thanks. . .

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