strtotime - 날짜빼기, 날짜더하기 > PHP

본문 바로가기
사이트 내 전체검색

PHP

strtotime - 날짜빼기, 날짜더하기

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 7,853회 작성일 20-09-18 09:45

본문

echo strtotime("now"), "n";
 echo strtotime("10 September 2000"), "n";
 echo strtotime("+1 day"), "n";
 echo strtotime("+1 week"), "n";
 echo strtotime("+1 week 2 days 4 hours 2 seconds"), "n";
 echo strtotime("next Thursday"), "n";
 echo strtotime("last Monday"), "n";


 //전월
date('Y-m', strtotime($this_ymd. ' - 1 month'));

 //전년
date('Y-m', strtotime($this_ymd. ' - 1 year'));


--날짜빼기, 날짜더하기

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

Copyright © neion.co.kr All rights reserved.