Answers for "remove secondes from date php"

PHP
1

php remove 1 day from date

print('Next Date ' . date('Y-m-d', strtotime('-1 day', strtotime($date_raw))));
Posted by: Guest on July-18-2020
0

remove seconds from time php

// Use strtotime() -

echo date('g:ia', strtotime($timestamp));

// The date() function
// - string date ( string $format [, int $timestamp = time() ] )
// 	 - where $timestamp is to be an integer Unix timestamp.
Posted by: Guest on July-01-2021

Browse Popular Code Answers by Language