|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
question about calculating date daifference
I need to calculate difference between dates in format like this
(y-m-d) for example date1=21-may-2000 date2=18-august-2003 rezult =2year-2month-?day |
|
#2
|
|||
|
|||
|
use the DateDiff function.
__________________
Programmer's Corner |
|
#3
|
|||
|
|||
|
The DateDiff function returns the number of intervals between two dates.
Syntax DateDiff(interval,date1,date2[,firstdayofweek[,firstweekofyear]]) http://www.w3schools.com/vbscript/func_datediff.asp |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > question about calculating date daifference |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|