Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 
PREVIOUS NEXT
Tagged: #time #php
ADD COMMENT
Topic
Name
4+6 =