날짜계산식 예
작성일 19-03-29 14:38
페이지 정보
작성자 최고관리자 조회 4,870회 댓글 0건본문
하루전 = date("Y-m-d", strtotime("-1 day", time()));
지금 = date("Y-m-d", strtotime("now", time()));
내일 = date("Y-m-d", strtotime("+1 day", time()));
일주일뒤 = date("Y-m-d", strtotime("+1 week", time()));
다음달 = date("Y-m-d", strtotime("+1 month", time()));
다음주 월요일 = date("Y-m-d", strtotime("next Monday", time()));
지난 월요일 = date("Y-m-d", strtotime("last Monday", time()));
댓글목록
등록된 댓글이 없습니다.