Probably the second version you posted would indeed be better. I stayed away from `instanceof Date` because this SO http://stackoverflow.com/a/643827 article mentioned that it might not always be safe.

But the `if (!aria.utils.Type.isDate(date)) { ... }` seems to be the most idiomatic version. 

I´ll update or you?