date

G

Guest

I need to calculate the different between date of birth and further date
Example for what I am using
14/12/1997 and further date 1/10/2006
Year =DateDiff("yyyy";[geburtsdatum];"1/10/2006") 9
Month =Month("01/10/2006")-Month([geburtsdatum]) -2
Day =Day([geburtsdatum])-Day("1/10/2006") 13

-2 should be 12 I need help please
 
M

Marshall Barton

Gur said:
I need to calculate the different between date of birth and further date
Example for what I am using
14/12/1997 and further date 1/10/2006
Year =DateDiff("yyyy";[geburtsdatum];"1/10/2006") 9
Month =Month("01/10/2006")-Month([geburtsdatum]) -2
Day =Day([geburtsdatum])-Day("1/10/2006") 13

-2 should be 12 I need help please


Maybe you want to use his function:
http://www.accessmvp.com/djsteele/Diff2Dates.html

or maybe this article will give you some ideas:
http://www.mvps.org/access/datetime/date0001.htm
 

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

Top