"Datetime to date"의 두 판 사이의 차이

잔글 (Jmnote 사용자가 Time to date 문서를 Datetime to date 문서로 옮겼습니다)
1번째 줄: 1번째 줄:
[[category: time]]
[[category: time]]
[[category: date]]
[[category: date]]
==PHP==
[[caregory: PHP]]
<source lang='php'>
echo date('Y-m-d', strtotime('2016-02-22 00:00:00'));
# 2016-02-22
</source>
<source lang='php'>
echo date('Y-m-d', strtotime('2016-02-22 23:59:59'));
# 2016-02-22
</source>


==SQL==
==SQL==

2016년 1월 7일 (목) 16:01 판


1 PHP

caregory: PHP

echo date('Y-m-d', strtotime('2016-02-22 00:00:00'));
# 2016-02-22
echo date('Y-m-d', strtotime('2016-02-22 23:59:59'));
# 2016-02-22

2 SQL

2.1 MySQL

SELECT DATE('2016-02-22 00:00:00');
# 2016-02-22
SELECT DATE('2016-02-22 23:59:59');
# 2016-02-22
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}