Hi Heckler
So how do you translate this bit of code into PICbasic??
DSTStart = (31 - (((5*Year)/4)+ 4) mod 7)
The whole subroutine is cut directly from my PBP program and will work as is. If you want to check it write it as a small program, set Year word variable to 2016 and debug out the start and end dates.
Cheers Pete
Bookmarks