Need help with Date
-
I need some information on how to calculate year's difference between two date. And if there is such a function already existing in dotnet for that kind of operations. Thank you in advance. :-D I am a not so total newbie
-
I need some information on how to calculate year's difference between two date. And if there is such a function already existing in dotnet for that kind of operations. Thank you in advance. :-D I am a not so total newbie
This is for VB6... not sure about .net Say your first date is 20/12/2000 and your second date is 15/12/2004 Dim strDate1 As String Dim strDate2 As String Dim strDifference As String strDate1 = "20/12/2000" strDate2 = "15/12/2004" strDifference = DateDiff("yyyy", strDate1 , strDate2) msgbox strDifference 'This will be 4 years Dont know if that is what you were looking for?? Anyway... Later