isDateCheck if the given value is a Date object.
isDate method to verify the parameter type, avoiding errors caused by passing non - Date values.v (any): The value to test if it is a Date object.v is Date): Returns true if the value is a Date object, otherwise returns false.