Friday, March 13, 2015

How to date format change using PHP

I am working in php application. I want to change date format in my application I want to show the date like "Friday March 13, 2015".

The global "Standard" is yyyy-mm-dd, and should always be used by systems wherever possible. The order day, month, year is used by people in most of the world (except USA), but usually with slashes, not hyphens. To avoid confusion, I only separate YYYY-MM-DD with hyphens. Any other date format I will separate with slashes

I just simply change my php date format the follow mentioned below:

<?php echo date('l F d,Y',strtotime($row['created_date'])); ?>

No comments:

Post a Comment