Welcome Guest, Not a member yet? Register   Sign In
Date format problem
#1

[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...???...
#2

[eluser]InsiteFX[/eluser]
Did you take a look at this?

CodeIgniter User Guide - Date Helper

InsiteFX
#3

[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 .
#4

[eluser]Atharva[/eluser]
Code:
<?php echo date ("F-d-Y",strtotime($row->eventsdate));?>
#5

[eluser]Roy MJ[/eluser]
Thankyou atharva...




Theme © iAndrew 2016 - Forum software by © MyBB