+ Reply to Thread
Results 1 to 3 of 3

Thread: Previous days Date in Query

  1. #1
    Guest.Visitor Guest

    Default Previous days Date in Query

    Use the following function DATE(DAYS(CURRENT(DATE))-1) This will convert current date to a number of days value. We subtract 1 from that value to go back one day and then convert back to a date using the DATE function.

  2. #2
    gary.shipp@s3t.co.uk Guest

    Default Previous days Date in Query

    Is there a way to calculate yesterdays date (or thinking about it, any previous day) in Query? I can retrieve the current date, and subtract one from the day portion of that date, but then things get messy/impossible when you go back into a previous month/year. Thanks in anticipation

  3. #3
    gary.shipp@s3t.co.uk Guest

    Default Previous days Date in Query

    lol I've just spent two hours messing about with result fields and converting dates and fields into different formats - 14 result fields used in total! This looks a little simpler! Thanks a lot.

+ Reply to Thread

Similar Threads

  1. Query and date processing
    By lls_51@yahoo.com in forum General
    Replies: 1
    Last Post: 08-17-2006, 12:39 PM
  2. Replies: 3
    Last Post: 03-10-2004, 04:20 AM
  3. Replies: 1
    Last Post: 07-22-2003, 05:02 AM
  4. AS/400 -> Excel 97 Date query
    By Guest.Visitor in forum Programming
    Replies: 2
    Last Post: 04-25-2001, 07:28 AM
  5. Query Date Questions
    By Guest.Visitor in forum Application Software
    Replies: 2
    Last Post: 01-31-2000, 12:47 PM

Posting Permissions

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