Date format problem |
[eluser]Roy MJ[/eluser]
Hey, I was having problem with the date format which was yyyy/mm/dd as default. Ive somehow figured to use <?php echo date ("d-m-Y",strtotime($row->eventsdate));?> and change the format to my liking. But is there anyway to display the month in alphabets like November- 20-2011...???...
[eluser]InsiteFX[/eluser]
Did you take a look at this? CodeIgniter User Guide - Date Helper InsiteFX
[eluser]Roy MJ[/eluser]
Yes i have. Im not getting much into whats said. $format = 'DATE_RFC822'; $time = time(); echo standard_date($format, $time); But i cant find one where its jus the day month(alphabets) and year .
[eluser]Atharva[/eluser]
Code: <?php echo date ("F-d-Y",strtotime($row->eventsdate));?>
|
Welcome Guest, Not a member yet? Register Sign In |