Following Date & Time Function so helpfull:
1. Number of days in a month
The function 'cal_days_in_month' is used to return the number of days in a month. This function takes three arguments one for calendar name, month value and year value respectively.
Syntax:
cal_days_in_month( CAL_GREGORIAN, $intMonth, $intYear);
Example:
cal_days_in_month ( CAL_GREGORIAN, 1, 2005); Output: 31
2. Calculating Days In A Month
Recent comments