If I have a date such as 10/10/10, how do I display the date (in date format) 2 weeks after that? I think it has to do with strtotime
, but I don't know how to write it. I'm looking at the php.net site and can't figure it out.
尝试这个
date('y/m/d', strtotime('+2 weeks', strtotime('10/10/10')));
我不是您所需要的100%,但我们将尝试一下:
$defaultTime = strtotime('+2 week',strtotime('10/10/10'));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.