/**
* Check if the date is valid. Without this check,
* an "Invalid Date" string could appear in some of the Javascript engines
* When using the .toDateString() method.
* @param {Date} date
*/exportfunctionisDateValid(date) {
return date instanceofDate && !isNaN(date);
}