Your Ad Here

Home » PHP Code »

0

Generally , in the database date and time which is data type current timestamp

then it inserted into US date format, now we have to print like UK date format then

echo date(“j – m – Y,g:i A”,  strtotime($orders['date_purchased']));

Then it printed like  01 – 06 – 2009,04:55 AM


You may like these posts

    How to manage random header image in joomlaFew things about PHPHow to get list of table names from database in mysql?How to implement graphs using fusion charts and php

 

Leave a Reply