last date of this month

images php coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
php-forum GURU
php-forum GURU
Posts: 2192
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: last date of this month

Post by egami » Wed Apr 13, 2011 5:01 am

date('t'); // number of days in a month.

date('t',mktime(0,0,0,date('m')-1,1,date('Y')) // days last month
date('t',mktime(0,0,0,date('m')+1,1,date('Y')) // days of next month

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests