채택완료
10-15 형식의 날짜 2019-10-15로 바꾸는법 좀 알려주세요.
<td class="td_date"><?php echo $list[$i]['datetime2'] ?></td> 출력문입니다.
|
답변 4개
채택된 답변
+20 포인트
$list[$i]['datetime2'] 을 $list[$i]['datetime'] 로 변경하세요
감사합니다.
2019-10-17 (목) 12:11:41
$list[$i]['datetime2']
대신
date("Y-m-d", strtotime($list[$i]['wr_datetime']))
2019-10-17 (목) 11:58:40
답변을 작성하려면 로그인이 필요합니다.