<?php
header("Content-Type:text/html;charset=utf-8");
$date = date("Y-m-d H:i:s",time());
$firstday = date("Y-m-01",strtotime($date));
$lastday = date("Y-m-d",strtotime("$firstday +1 month -1 day"));

var_dump($firstday,$lastday);
?>

 

相关文章:

  • 2021-06-20
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2022-02-05
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案