Results 1 to 3 of 3

Thread: How to display an overdue(date) record?

  1. #1
    Join Date
    Mar 2004
    Posts
    3

    How to display an overdue(date) record?

    i have payment table here with payment_date field(shows the last payment) in it...now what i wanna do is to display the records that the current date minus payment_date is greater than 2 months...

    for example:

    today : 03/15/2004
    all the records before 01/15/2004 will be displayed....

    thx a lot

  2. #2
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Use DATEDIFF function to find the difference between current date and last payment date.

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    select * from sysobjects where crdate<=(getdate()-60)

Posting Permissions

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