더 나은 프로그래머가 되자

날짜 더하기 날짜 계산하기,strtotime,date 본문

언어/PHP

날짜 더하기 날짜 계산하기,strtotime,date

greathuman 2015. 2. 11. 21:05

$after_date = date("Y-m-d", strtotime(date("Y-m-d")." +7 days")); //7일 후
$after_date = date("Y-m-d", strtotime(date("Y-m-d")." +7 months")); //7개월 후

Comments