Get a month's start and end dates

xiaoxiao2021-03-06  95

$ y = "2003";

$ m = "5";

$ D = STRTOTIME ("$ Y- $ M-1"); //

$ E = STRTOTIME ("$ Y- $ M -". Date ("t", $ d)); // End this month

//verification

Echo Date ("Y-M-D", $ D);

Echo Date ("Y-M-D", $ E);

?>

转载请注明原文地址:https://www.9cbs.com/read-122095.html

New Post(0)