PHP 日期格式中 Y与y

大写Y效果:

$nowtime = time();
$nowtime=date("Y-m-d",$nowtime);

结果: 2015-10-24

 

小写y效果:

$nowtime = time();
$nowtime=date("Y-m-d",$nowtime);

结果: 15-10-24

 

posted @ 2015-02-28 14:41  Coding_Yong  阅读(772)  评论(0编辑  收藏  举报