sdxh0506 发表于 2017-3-30 11:04:53

php 的时间日期操作

  $statistic_day = date ( "Y-m-d", mktime ( 0, 0, 0, 4, $i, 2011 ) );
  $next_day = date ( "Y-m-d", strtotime ( $statistic_day . " -1 day" ) ); //取前一天
  两个日期想减
  $days_count = (strtotime ( $end_date ) - strtotime ( $begin_date )) / 86400;
页: [1]
查看完整版本: php 的时间日期操作