Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }