Forum Moderators: coopster
I tried:
echo date('M ds',strtotime("20081212");
and
echo date('M ds',"20080224");
but it doesn't work.
Sorry to ask this silly question. I've tried to search php manual but still can't get the answer on this.....
echo date('M d', strtotime('20080224'));
<edit>
Strangely I have tried date('M ds' ...) and got 'Feb 2400' so your example with seconds is working for me...so I dont know if what I have above will actually help you as if you have tried and it didnt work then there must be a difference in our systems :(
Just noticed that you are using a different date in each of your examples. So I hope that you noticed that -
echo date('M ds',strtotime("20081212");
will return you 'Dec 1200' as you have asked about the 12th December, not 24th Feb.
[edited by: PHP_Chimp at 11:12 am (utc) on Feb. 24, 2008]