Page 1 of 1

last day of a month

Posted: Thu Oct 14, 2004 7:45 am
by pelegk2
is there a way to get the last day of the month withought buikding a function - something that is ready made
so in :
jenuay i will get 313
february 28 and so on
thnaks in adbvance
peleg

Posted: Thu Oct 14, 2004 8:05 am
by Weirdan

Code: Select all

echo date('r', mktime(0,0,0,date('n')+1,0, date('Y')));
References:
  • [php_man]date[/php_man]
  • [php_man]mktime[/php_man]

Posted: Thu Oct 14, 2004 10:07 am
by pelegk2
very cool man all the reesults on goole were functions with lots of code