Date Format in the PHP Code?

in PHP Code / No Comments

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

With more than 8 years experience in PHP and Founder of Anil Labs, a blog for PHP and related posts. contributed posts regarding CodeIgniter, CakePHP and Learn PHP online ... Contact : [email protected]

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>