instanceof isn't a reliable way to detect Dates - `forms` uses the `is` module which has an `is.date` function. can you use that?

Also, `new Date(date)` should work as well in that case, so you may not even need the check.