Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
php time format am pm
Curiously focussed
Programming language:
PHP
2021-03-08 10:11:25
0
Q:
php time format am pm
Stella Biderman
Code:
PHP
2021-05-30 03:34:55
$currentDateTime = '08/04/2010 22:15:00'; $newDateTime = date('h:i A', strtotime($currentDateTime));
2
Tags
php
time
form
Related
php datetime format
php date set utc hours
php time
php time format
datetime php
php date strtotime format
php start of day epoch
date time format php
date now php
php date timestamp now
convert am pm time to 24 hour in php
get timezone difference with utc in minutes php
php current datettime us time zone
php date now
php datetime
php datetime set timezone
php current time
New to Communities?
Join the community