Hi
i have a code that shows the days of the week, i want to except Friday and Saturday and not to show them in the report.
i have a code that shows the days of the week, i want to except Friday and Saturday and not to show them in the report.
Code:
Function GetNthDay(d As Date, n As Integer) As Date
'' Returns a date that is the Nth day of the given month and year
GetNthDay = DateSerial(Year(d), Month(d), n)
End Function
Function GetNextWeekday(d1 As Date) As Date
' Returns the first weekday that occurs on or after the given date
' 'in most cases this is correct
GetNextWeekday = d1
End Function