B
Brian
Hi,
this is my code
Public Shared Function LastDayOfTheMonth(ByVal dtmdate As Date) As DayOfWeek
Return dtmdate.AddDays(dtmdate.DaysInMonth(dtmdate.Year, dtmdate.Month) -
dtmdate.Day).DayOfWeek()
End Function
on the dtmdate.daysinmonth I get the error
"Access of shared memeber, constant member,..... will not be evaluated"
it wants me to replace dtmdate.daysinmonth with date which would make my
function not correct....
Can anyone give me some clues?
this is my code
Public Shared Function LastDayOfTheMonth(ByVal dtmdate As Date) As DayOfWeek
Return dtmdate.AddDays(dtmdate.DaysInMonth(dtmdate.Year, dtmdate.Month) -
dtmdate.Day).DayOfWeek()
End Function
on the dtmdate.daysinmonth I get the error
"Access of shared memeber, constant member,..... will not be evaluated"
it wants me to replace dtmdate.daysinmonth with date which would make my
function not correct....
Can anyone give me some clues?