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

Thread: Date Function

  1. #1
    Join Date
    Jan 2001
    Posts
    515
    I want to update a field in a table to be today's date at 11:59pm. I guess I can't get the date to come out right. What arithmetic can I use to accomplish this?

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    system@dev815nt.us> l
    1* select to_char(trunc(sysdate)+(((24*60*60)-1)/(24*60*60)), 'mm/dd/yyyy hh24:mi:ss') from dual
    system@dev815nt.us> /

    TO_CHAR(TRUNC(SYSDA
    -------------------
    02/20/2001 23:59:59
    Jeff Hunter

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