Date Problems

Results 1 to 4 of 4

Thread: Date Problems

  1. #1
    Mark Cobb Guest

    Default Date Problems

    Does anyone know how to count how many days there are from the current date to, for example November 16th 2001?<BR><BR>Many thanks,<BR><BR>Mark

  2. #2
    Join Date
    Dec 1969

    Default RE: Date Problems

    Here&#039s the code:<BR><BR>noOfDays = datediff("d", date, "11/16/2001")

  3. #3
    Mark Cobb Guest

    Default RE: Date Problems

    Thanks for your help Peter, following on from that do you happen to know how to around the result of "nextnumber" up to the nearest whole number?<BR><BR>noOfDays = datediff("d", date, "5/4/2001")<BR><BR>nextnumber= (noOfDays - 14) / 30<BR><BR>Thankyou kindly,<BR><BR>Mark

  4. #4
    Mark Cobb Guest

    Default RE: Date Problems

    Oh I found the Response.Write formatnumber(nextnumber,0) fuction, <BR><BR>Thanks anyway...<BR><BR>Mark.

Posting Permissions

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