llmclaughlin
Programmer
Using the below code I'm coming up one day short. From todays date 8/20/2011 is 54 days, the below gived me 53.
Any suggestions?
Dim sNOW As DateTime = Now.ToShortDateString
Dim sDATE As DateTime = CType("08/20/2011", DateTime).ToShortDateString
Dim tSPAN As TimeSpan = sNOW.Subtract(sDATE.ToShortDateString)
Dim intDAYS As Int16 = tSPAN.Days
Dim strMSG As String = "August 20th 2011 ~ Number of days to go ~ " & Math.Abs(intDAYS)
Louie
Any suggestions?
Dim sNOW As DateTime = Now.ToShortDateString
Dim sDATE As DateTime = CType("08/20/2011", DateTime).ToShortDateString
Dim tSPAN As TimeSpan = sNOW.Subtract(sDATE.ToShortDateString)
Dim intDAYS As Int16 = tSPAN.Days
Dim strMSG As String = "August 20th 2011 ~ Number of days to go ~ " & Math.Abs(intDAYS)
Louie