public static bool TryParse(string str, out DateTime value) { JsNumber innerValue = JsDate.parse(str); if (innerValue == JsNumber.NaN) { value = new DateTime(1970, 1, 1); return(false); } value = new DateTime(innerValue); return(true); }
public static DateTime Parse(string str) { return(new DateTime(JsDate.parse(str))); }