메뉴 건너뛰기

프로그램언어

2019.01.08 14:44

오늘 날짜 구하기

조회 수 1323 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
php에서 오늘 날짜 구하기

$today = getdate(mktime());
$e_year = $today[year];
if($today[mon] < 10)
{
$e_month = "0".$today[mon];
} else {
$e_month = $today[mon];
}

if($today[mday] < 10)
{
$e_day = "0".$today[mday];
} else {
$e_day = $today[mday];
}
$e_visitdate = $e_year."-".$e_month."-".$e_day;



하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved