結果 : check if object is of type date javascript