php time format am pm
$currentDateTime = '08/04/2010 22:15:00';
$newDateTime = date('h:i A', strtotime($currentDateTime));
php time format am pm
$currentDateTime = '08/04/2010 22:15:00';
$newDateTime = date('h:i A', strtotime($currentDateTime));
convert am pm time to 24 hour in php
echo date("H:i:s", strtotime("04:25 PM"));
how to get time php with am/pm
// Use this to get time and date with am and pm without leading 0
$date = date("g:i A");
// output: 1:46 PM
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us