当天日期
- $todayStart= date('Y-m-d 00:00:00', time()); //2021-07-14 00:00:00
- $todayEnd= date('Y-m-d 23:59:59', time()); //2021-07-14 23:59:59
指定日期
代码语言:javascript
复制$dateStr为Y-m-d格式
//0点
$timestamp = strtotime($dateStr);
//24点
$timestamp = strtotime($dateStr) 86400;