//해당요일
$dayOfTheWeek = date('w',mktime(0,0,0,$month,$day,$year));
$dayOfTheWeek1 = date('w',strtotime($year.$month.$day));
//주차구하기
$week = date('W',mktime(0,0,0,$month,$day,$year));
$week1 = date('W',strtotime($year.$month.$day));
//해당주차의 시작일
$sd = mktime(0,0,0,$month,$day-$dayOfTheWeek,$year);
$sd1 = date("Y-m-d H:i:s",$sd);
//해당주차의 종료일
$ed = mktime(23,59,59,$month,$day+(6-$dayOfTheWeek),$year);
$ed1 = date("Y-m-d H:i:s",$ed);
//해당달의 시작일
$msd = mktime(23,59,59,$month,1,$year);
//해당월의 마지막 날짜
$med = mktime(23,59,59,$month,date("t",$msd),$year);
$med1 = date("Y-m-d H:i:s",$med);