Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Create more dates/times from strtotime()
SUBMITTED BY:
henry1874w
DATE:
June 17, 2017, 1:28 p.m.
FORMAT:
Text only
SIZE:
278 Bytes
Raw
Download
Tweet
HITS:
217
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
$d=strtotime("tomorrow");
echo date("Y-m-d h:i:sa", $d) . "<br>";
$d=strtotime("next Saturday");
echo date("Y-m-d h:i:sa", $d) . "<br>";
$d=strtotime("+3 Months");
echo date("Y-m-d h:i:sa", $d) . "<br>";
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus