current time in 12 hours format
-
hi i want to display current date & time on blog header
i using these code
<?php echo date('G:ia',current_time('timestamp',0)); ?> <?php the_time('l, jS F, Y') ?>
result = 21:19pm Friday, 19th August, 2011
it should be = 9:19 pm Friday, 19th August, 2011
i want the time in 12 hrs format
how to do that ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘current time in 12 hours format’ is closed to new replies.