Yes you can (as phylax proved even if a wrong date won't throw any exception) but...did you try something? At least a Google search?
Konstantin D - Infragistics i tried the the answer that you show me but i doesn't work
no, new Date(s) won't throw any exception for an invalid date.
uups i tried it in the console and misunderstood the results.