Results 1 to 2 of 2

Thread: SQL Date

  1. #1
    Join Date
    Sep 2005
    Posts
    21

    SQL Date

    Hi there
    Can anyone tell me how to do the following

    what is the code for todays date - 2 days, i.e 2 days ago?

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Try

    select (getdate() - 2)

Posting Permissions

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