<?php echo date("y.m.d", strtotime($list[$i]['wr_datetime'])) ?>
위에 문장을 아래에 적용시키려면 어떻게해야하는 모르겠어서요...
알려주시면 감사하겠습니다....
echo "<div class='ask_item_datetime'>" . $list[$i]['datetime'] . "</div>";
답변 2개 / 댓글 1개
echo "<div class='ask_item_datetime'>" . date("y.m.d", strtotime($list[$i]['wr_datetime'])) . "</div>";
답변에 대한 댓글 1개
<?php
$date = date("y.m.d", strtotime($list[$i]['wr_datetime']));
echo "<div class='ask_item_datetime'>" . $date . "</div>";
?>
답변을 작성하려면 로그인이 필요합니다.