adjust_date($month, $year)
Parameters: |
|
---|---|
Returns: |
An associative array containing month and year |
Return type: |
array |
This method makes sure that you have a valid month/year. For example, if you submit 13 as the month, the year will increment and the month will become January:
1 | print_r( $this ->calendar->adjust_date(13, 2014)); |
outputs:
1 2 3 4 5 | Array ( [month] => '01' [year] => '2015' ) |
Please login to continue.