結果 : check if value is of type date javascript