date format

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

date format

Post by adsegzy »

Hello People,

How do i code my script to echo my cade in the below format?

2nd May, 2009

02-05-2009

Regards,
adsegzy
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: date format

Post by Mark Baker »

sureshmaharana
Forum Commoner
Posts: 30
Joined: Thu Jul 03, 2008 4:20 am
Contact:

Re: date format

Post by sureshmaharana »

date("dS M, Y"); // 2nd May, 2009

date("d-m-Y"); //02-05-2009
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: date format

Post by josh »

Zend_Date is really useful too
Post Reply