結果 : how to handle invalid date in javascript