Answers for "days from timestamp in php"

PHP
0

how to get n days from today in php

//Simple method how to get the date of tomorrow, yesterday, etc. is to use: 
$tomorrow = date( "Ymd", strtotime( "+1 days" ) ); 
$dayaftertomorrow = date( "Ymd", strtotime( "+2 days" ) ); 
$yesterday = date( "Ymd", strtotime( "-1 days" ) );
Posted by: Guest on June-03-2021
0

php datetime from timestamp

$ts = 1171502725;
$date = new DateTime("@$ts");
Posted by: Guest on May-11-2021

Code answers related to "days from timestamp in php"

Browse Popular Code Answers by Language