You could also use the well known date() function to do that. Here's the doc http://www.php.net/manual/en/function.date.php Look for the format character "t", it wil give you the number of days of the month you give it as timestamp. -- Esú - http://esu.proyectoanonimo.com http://www.proyectoanonimo.com