function date_valid_month in Date 6.2
Same name and namespace in other branches
- 5.2 date_api.module \date_valid_month()
1 call to date_valid_month()
- date_is_valid in ./
date_api.module - Functions to test the validity of a date in various formats. Has special case for ISO dates and arrays which can be missing month and day and still be valid.
File
- ./
date_api.module, line 1525 - This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.
Code
function date_valid_month($month) {
if (12 < $month || 0 > $month) {
return FALSE;
}
else {
return TRUE;
}
}