I would really love some help with this.
Currently when I use the following PHP, my output is 02:42.
What I would like is 14:42.
<?php
date_default_timezone_set('Europe/London');
echo date("h:i",time());
?>
Also, is it possible to then use the converted time value to create a conditional statement to say if greater than 10am, do this.
Many thanks for any pointers
Use one of these:
G – 24 hour c (0-23)
H – 2 digit 24 hour (00-23)
Also to check