Answers for "remove seconds from time php"

PHP
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