获取一周日期
作者:
LauEl | 来源:发表于
2021-06-23 08:12 被阅读0次<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2021-6-23
* Time: 8:04
*/ //获取日期
$today = strtotime(date("Y-m-d", time()));
//$today = date("m月d日", time());
$date_list = array();
for ($i = 0; $i < 7; $i++) {
$date_list[$i]['value'] = date("m-d", $today + 86400 * $i);
$date_list[$i]['text'] = $today + 86400 * $i;
}
echo "<pre>";
var_dump($date_list);
var_dump($today);
···
···
$orderno = "O" . date('Ymd', time()) . sprintf('%08d', $count + 1);
···
本文标题:获取一周日期
本文链接:https://www.haomeiwen.com/subject/wdivyltx.html
网友评论