-1
我似乎无法找到答案。mysql查询的php日期格式
这将是对该以下格式有最新的PHP代码:
2012年11月29日
$date = new DateTime();
$date = $date->format('F j, Y');
这给我在2012年11月29日
我似乎无法找到答案。mysql查询的php日期格式
这将是对该以下格式有最新的PHP代码:
2012年11月29日
$date = new DateTime();
$date = $date->format('F j, Y');
这给我在2012年11月29日
$date = new DateTime();
$date = $date->format('Y-m-d');
DateTime使用的格式是[记录在这里](http://www.php.net/manual/en/datetime.createfromformat.php) – femtoRgon
是它吗?真的很难看手册?或在这里搜索:http://stackoverflow.com/search?q=format+date+php,或谷歌 – 2012-11-30 00:30:04
即使我看着他们,我不明白他们。 – ealeon