Elapsed days

  • Thread starter Thread starter Alex H
  • Start date Start date
A

Alex H

Hi is there any way to calculating the number of days elapsed between
current date and the previous 1st August?

Thanks
A
 
On the off-chance that you might have a user whose system isn't English,
it's better to use

datediff("d", DateSerial(year(date) - 1, 8, 1), date())
 
It the date is August 2, I believe that formula will give you 366 days (367 leap
years) instead of 1 day. Is that what you want? I think the following untested
formula will give you the numbers you expect.


DateDiff("d", DateSerial(Year(Date()) + Format(Date()"MMDD") < "0801",8,1),Date())

If JohnFol is correct then ignore
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top