날짜 표기 관련 질문입니다. 정보
날짜 표기 관련 질문입니다.본문
$tmp_date = $yyyy.substr("0".$mm,-2).substr("0".$day,-2);
<?=$tmp_date?>
이렇게 할경우
2013620
이렇게 표시됩니다.
저는
2013-06-20 이렇게 표시하고 싶습니다.
좀 부족하네요 ㅜ
<?=$tmp_date?>
이렇게 할경우
2013620
이렇게 표시됩니다.
저는
2013-06-20 이렇게 표시하고 싶습니다.
좀 부족하네요 ㅜ
댓글 전체
<?
$len = strlen($tmp_date);
$tel = "$tmp_date";
if($len==8)
{
$tel = substr($tel, 0, 4)."-".substr($tel,4,2)."-".substr($tel,6,2);
echo"$tel";
}
?> 이정도면 될까요
$len = strlen($tmp_date);
$tel = "$tmp_date";
if($len==8)
{
$tel = substr($tel, 0, 4)."-".substr($tel,4,2)."-".substr($tel,6,2);
echo"$tel";
}
?> 이정도면 될까요
감사합니다~~~!
$tmp_date = $yyyy."-".substr("0".$mm,-2)."-".substr("0".$day,-2);
이렇게도 됬엇다는..
이렇게도 됬엇다는..