Get the timestamp of the current date and time
echo time();
Get current date and time
echo date("Y/m/d H:i:s");
Convert date to timestamp
echo strtotime(date("Y/m/d"));
Convert timestamp to date
echo date('Y-m-d',time());
echo time();
Get current date and time
echo date("Y/m/d H:i:s");
echo strtotime(date("Y/m/d"));
Convert timestamp to date
echo date('Y-m-d',time());
Alipay
Author of this article: Hong Mu
Link to this article: https://www.4s5.cn/en/archives/240.html
Copyright statement:This article is an original article. Any form of reproduction, collection, or mirroring without authorization is prohibited. Violators will be prosecuted. If you need to reprint, please indicate the source and keep the link to the original text.
webmaster · Thanks for reading, stay tuned for more exciting content