D
Drago
Hi, I got the next question, I want to know the diference between two
dates
and thats is really easy, but my problem is get that diference in the
following format
ex. "the diference is= 0 year, 9 months, 11 days"
var1 = 04/04/1999
var2 = 01/11/2000
Response.Write("var1 to var2 is " & DateDiff("d", var1, var2) & " days
<br>")
Response.Write("var1 to var2 is " & DateDiff("m", var1, var2) & "
months <br>")
Response.Write("var1 to var2 is " & DateDiff("yyyy", var1, var2) & "
year(s) <br>")
Results:
var1 = 04/04/1999
var2 = 01/11/2000
var1 to var2 is 282 days
var1 to var2 is 9 months
var1 to var2 is 1 year(s)
I want to be like this: "the diference is= 0 year, 9 months, 11 days"
I will be very pleased if somebody can helpme to make a Fuction to do
this.
dates
and thats is really easy, but my problem is get that diference in the
following format
ex. "the diference is= 0 year, 9 months, 11 days"
var1 = 04/04/1999
var2 = 01/11/2000
Response.Write("var1 to var2 is " & DateDiff("d", var1, var2) & " days
<br>")
Response.Write("var1 to var2 is " & DateDiff("m", var1, var2) & "
months <br>")
Response.Write("var1 to var2 is " & DateDiff("yyyy", var1, var2) & "
year(s) <br>")
Results:
var1 = 04/04/1999
var2 = 01/11/2000
var1 to var2 is 282 days
var1 to var2 is 9 months
var1 to var2 is 1 year(s)
I want to be like this: "the diference is= 0 year, 9 months, 11 days"
I will be very pleased if somebody can helpme to make a Fuction to do
this.