Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2004
    Posts
    51

    Unanswered: How to subtract minutes from the date?

    I want to fetch all the records which are 2 minutes older
    How can I do it?

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    dateadd()

    It can take negative values...
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

  3. #3
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Code:
    SELECT *
       FROM aTable
       WHERE  aDateColumn < DateAdd(minute, -2, GetDate())
    -PatP

Posting Permissions

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