• Calculating number of days between dates (Access 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Calculating number of days between dates (Access 2000)

    Author
    Topic
    #403088

    If I have the start date and the end date, how would I calculate the number of days in between, not counting the end date as a day

    Viewing 2 reply threads
    Author
    Replies
    • #807793

      I’m not sure about Access2K, but it *should* work like A97. Try this:

      datediff(“d”,startdate,enddate) for days

      datediff(“w”,startdate,enddate) for weekdays (m-f)

    • #807794

      I’m not sure about Access2K, but it *should* work like A97. Try this:

      datediff(“d”,startdate,enddate) for days

      datediff(“w”,startdate,enddate) for weekdays (m-f)

    • #807831

      Chico’s suggestion should work. Or, since dates are stored as a number of days (since December 31, 1899), you can simply subtract them: [End Date] – [Start Date]

    Viewing 2 reply threads
    Reply To: Calculating number of days between dates (Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: