eequalsmc2plus1
Programmer
Hi
Does anyone know of a way or function to get the number of days between 2 specific dates
eg: date 1 1 July 2002
date 2 10 July 2002
It will give me 9
but that simple example
need it to work with different months and leap years and all
eg: date 1 31 December 1967
date 2 10 December 2002
Answer is 12763
Can do that with 1 line in other language( UniVerse Basic )
but need to do it in VB.
Could probably do it by getting years and * 365 and then and divide by 4 and add that for leap years and then work out months, but was wondering if easier way.
Thanks
Damian
Does anyone know of a way or function to get the number of days between 2 specific dates
eg: date 1 1 July 2002
date 2 10 July 2002
It will give me 9
but that simple example
need it to work with different months and leap years and all
eg: date 1 31 December 1967
date 2 10 December 2002
Answer is 12763
Can do that with 1 line in other language( UniVerse Basic )
but need to do it in VB.
Could probably do it by getting years and * 365 and then and divide by 4 and add that for leap years and then work out months, but was wondering if easier way.
Thanks
Damian