strtotime - 날짜빼기, 날짜더하기 > Web 끄적임

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

Web 끄적임

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

페이지 정보

profile_image
작성자 관리자
댓글 0건 조회 12,379회 작성일 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'));


--날짜빼기, 날짜더하기
추천0 비추천0

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

접속자집계

오늘
1,359
어제
1,135
최대
2,110
전체
55,998
접속자 : 12 모바일버전

Copyright © NEION All rights reserved.