[Solved] I just want to show time in a 24 hour clock in php when my form submits [duplicate]


I would use date() instead, which is something I’ve just done on my website:

<?php echo date("D M d, Y G:i a"); ?>

it’s explained in a little more detail here, as regards formatting. Maybe you want:

<?php echo date("G:i"); ?>

the formatting is up to you, but date() is what you want 😉

4

solved I just want to show time in a 24 hour clock in php when my form submits [duplicate]