/* The start dates for each time period (in an array). Need to be in the form mm/dd/yyyy and in chronological order */ // This code ensures that the date is always the current week, the one before, // and the one after, but you are welcome to hard code the dates $tmp=time()-date('H')*60*60-date('i')*60-date('s')-date('w')*60*60*24; $week=60*60*24*7; $default->startdates = array (date("m/d/Y",($tmp-$week)), date("m/d/Y",($tmp)), date("m/d/Y",($tmp+$week))); $default->week_start = 'Monday'; // Day that the week starts, must be complete day $default->num_in_last = 56; /* The number of days in the last timecard period * (the others are calculated based on the next date,