Why doesn't the following work?
$num_days = date ( "t" , $month );
In this case $month = "06" but instead of getting back 30 days I get 31 (June has 30 days).
Even I provide the full date
$num_days = date ( "t" , "2004-06-01");
I get the same result.
Thanks in advance.