You are here: date(), time(), first of the month « All PHP « IT news, forums, messages
date(), time(), first of the month

Posted by Feudalac! on 10/13/05 17:36

i have a function that detects witch day is the first of the month

by makeing a date
$firstofthemonth=time()-(date('d')-1)*24*60*60;
$firstday= date('D',$firstofthemonth);


my question is:

how do i create a date if i don't know the today date?

with $_GET i read the date that i need - yyyymmdd
now i want to findout which day is the first of THAT month?
eg. if variable supplayd is 20050813?
i then break that down to
day=13
month=08
year=2005

how can i findout which day is the 1st?


thanks

 

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

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