| 
	  
	테스트 일 : 2011년 9월 7일 
	형식 : string date(string $format [, int $timestamp] )format parameters
 d => 01 to 31
 D => Mon through Sun
 w => 0(sunday) through 6(saturday)
 z => 0 through 365
 m => 01 through 12 (month)
 M => Jan through Dec
 t => 28 through 31 ( last day of month , 달 마지막 날 )
 Y => 1999 or 2011
 h => 01 through 12 (12 hour)
 H => 00 through 23 (24 hour)
 i => 00 to 59 (minutes)
 s => 00 through 59 (seconds)
 
	오늘출력echo date("Ymd");     출력->       20110907
 
	오늘로 부터 3일 후echo date("Y-m-d", strtotime("+3 day"));      출력->       2011-09-10
 
	오늘로 부터 3일 전echo date("Y-m-d", strtotime("-3 day"));      출력->       2011-09-04
 
	오늘로 부터 일주일 전echo date("Y-m-d", strtotime("-1 week"));      출력->       2011-08-31
 
	유닉스 timestamp 값을 리턴echo strtotime("now");      출력->      1315389514
 
	특정일을 구하기$oneweekbefore = strtotime("-1 week");
 echo date("Y-m-d", strtotime("7 day", $oneweekbefore));      출력->       2011-09-07
 
	특정일 구하기2-이번달 마지막날mktime(시,분,초,월,일,년도)
 echo date('t', mktime(0,0,0,9,7,2011);      출력->       30
 
	이번주 월요일 구하기$now1 = date("w");
 $m = $now1-1;
 echo date("Y-m-d", strtotime("-$m day"));
 
	  |