http://www.w3schools.com/php/php_date.asp 에서 참고!
날짜관련항목
d - Represents the day of the month (01 to 31)
m - Represents a month (01 to 12)
Y - Represents a year (in four digits)
l (lowercase 'L') - Represents the day of the week
시간관련항목
h - 12-hour format of an hour with leading zeros (01 to 12)
i - Minutes with leading zeros (00 to 59)
s - Seconds with leading zeros (00 to 59)
a - Lowercase Ante meridiem and Post meridiem (am or pm)
활용가능한 함수
mktime(hour,minute,second,month,day,year);
strtotime(time,now);
'Programming > php' 카테고리의 다른 글
[php에서자바스크립트사용] echo로 변수처럼 선언해도 작동하지 않을 때 (0) | 2017.02.09 |
---|---|
[php] date() 함수 활용해 간단하게 달력만들기 (2) | 2017.01.12 |
[javascript] 카카오링크 사용하기(모바일전용) (0) | 2015.12.15 |
[php] 오랜만에 php 관련함수들! 배열 & 파일업로드 관련~ (0) | 2014.04.03 |
[php] 받아온 값 줄여서 보여주기(?) substr 한글깨짐 해결하기 (0) | 2014.02.14 |