I have code that generates the day of year for a calendar. I know the day of the year and the year value. For example, Jan 11 is 10 and the year is 2004.
I now want to take those values and create a date so that I can determine if the date is a leap year.
$this->day_id = 10
$this->year = 2004
$dateval = mktime(0,0,0,0,$this->day_id+1,$this->year);
Why does $dateval = 12-10-2003?