' Return the day of week from ticks
' Values are between 1 to 7, where 1 means Saturday.
Sub DayOfWeek (Ticks As Long) As Int
Dim Day As Int = (DateTime.GetDayOfWeek(Ticks) + 1) Mod 7
Return IIf(Day = 0, 7, Day)
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.