calculate the occurance of specific weekday between two given dates
I need to convert my own event table into epc_calendar table. One function is to calculate how many occurances of a specific weekday (Tuesday) between two given dates (between Auguest 5, 2005 and September 18, 2005). Do you have such php codes to implement such function? Thanks.