Notice
														
												
											
												
												
													Recent Posts
													
											
												
												
													Recent Comments
													
											
												
												
													Link
													
											
									| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
| 9 | 10 | 11 | 12 | 13 | 14 | 15 | 
| 16 | 17 | 18 | 19 | 20 | 21 | 22 | 
| 23 | 24 | 25 | 26 | 27 | 28 | 29 | 
| 30 | 
													Tags
													
											
												
												- php
- 공모주
- 주식
- MYSQL
- 자바
- 코드이그나이터
- java
- 주식 청약
- 공모주 청약 일정
- 맥
- linux
- Stock ipo
- 6월 공모주 청약 일정
- 주식 청약 일정
- IPO
- Oracle
- codeigniter
- 오라클
- 7월 공모주 청약 일정
- css
- 자바스크립트
- 공모주 청약
- JavaScript
- SQL
- 리눅스
- Stock
- Eclipse
- html
- jquery
- 제이쿼리
													Archives
													
											
												
												- Today
- Total
개발자의 끄적끄적
[php] php 날짜 계산 본문
728x90
    
    
  반응형
    
    
    
  [php] php 날짜 계산
date("Y-m-d", strtotime("-1 day"))  // 현재시간부터 1 주일 전
date("Y-m-d", strtotime("-1 week"))  // 현재시간부터 1 주일 전
date("Y-m-d", strtotime("-1 month"))  // 현재시간부터 1 개월 전
date("Y-m-d", strtotime("-3 month"))  // 현재시간부터 1 개월 전
date("Y-m-d", strtotime("-6 months"))  // 현재시간부터 6 개월 전
date("Y-m-d", strtotime("+6 months"))  // 현재시간부터 6 개월 후
date("Y-m-d", strtotime("+1 years"))  // 현재시간부터 1 년 후제가 평소에 자주 사용하던 부분만 정리해서 올렸습니다.
이걸 응용하시면 검색창 기간 검색에 활용이 많이 되실껍니당!
참고하세용!
반응형
    
    
    
  '개발 > php' 카테고리의 다른 글
| [php] is_dir() 폴더 존재 여부 확인 (0) | 2019.10.26 | 
|---|---|
| [php] php.ini timezone 타임존 설정 (0) | 2019.10.25 | 
| [php] file_exists 파일 존재여부 체크 함수 (0) | 2019.10.24 | 
| [php] php Constant 공통변수 선언 및 사용 (0) | 2019.10.21 | 
| [php] json_encode 함수 (0) | 2019.10.18 | 
								  Comments
								
							
						
					
                    
                
					
					
					
					
					
					
				