You are here: Re: Display previous month « PHP Programming Language « IT news, forums, messages
Re: Display previous month

Posted by AnrDaemon on 11/06/07 11:23

Greetings, Jerry Stuckle.
In reply to Your message dated Tuesday, November 6, 2007, 08:28:20,

> AnrDaemon wrote:
>> Greetings, Jerry Stuckle.
>> In reply to Your message dated Monday, November 5, 2007, 17:42:13,
>>
>>> echo date("F",strtotime(-date('j') . ' days'));
>>
>> Another piece of ***:
>>
>> date('F', mktime(1, 1, 1, date('m')-1, 1, date('Y')));
>>
>> ;)
>>
>>

> Yours fails in January.

Check it before posting such silliness.

<?php

echo date('D d F, Y', mktime(1, 1, 1, 0, 1, 2007));

?>

Intended answer:
Fri 01 December, 2006


--
Sincerely Yours, AnrDaemon <anrdaemon@freemail.ru>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация