Hi,
why does this function return the date and time.. I only want the date to
return.. no time on it :(
Public Shared Function LastWorkDayOfTh eMonth(ByVal dtmdate As Date) As Date
Dim x As Date = LastDayOfTheMon thDate(dtmdate)
Do While IsWeekday(x) = False
x = x.AddDays(-1)
Loop
Return x.Date
End Function
why does this function return the date and time.. I only want the date to
return.. no time on it :(
Public Shared Function LastWorkDayOfTh eMonth(ByVal dtmdate As Date) As Date
Dim x As Date = LastDayOfTheMon thDate(dtmdate)
Do While IsWeekday(x) = False
x = x.AddDays(-1)
Loop
Return x.Date
End Function
Comment