public void ParseExactWithCultureWorks() { var dt = JsDate.ParseExact("2012-12-08", "yyyy-dd-MM", CultureInfo.InvariantCulture); Assert.AreEqual(dt.GetFullYear(), 2012); Assert.AreEqual(dt.GetMonth(), 7); Assert.AreEqual(dt.GetDate(), 12); }
public void ParseExactWorks() { var dt = JsDate.ParseExact("2012-12-08", "yyyy-dd-MM"); Assert.AreEqual(dt.GetFullYear(), 2012); Assert.AreEqual(dt.GetMonth(), 7); Assert.AreEqual(dt.GetDate(), 12); }