php print days with months and days code example
Example 1: n months from today php
$effectiveDate = date('Y-m-d', strtotime("+3 months", strtotime($effectiveDate)));
Example 2: java jagged array days and months
int[][] CalendarDays = new int[12][];
for(int i = 1; i <= 12; i++) {
// months with 30 days
if(i == 4 || i == 6 || i = 9 || i == 11) {
CalendarDays[i] = new int[30];
// months with 28 days
} else if(i == 2) {
CalendarDays[i] = new int[28];
// months with 31 days
} else {
CalendarDays[i] = new int [31];
}
}