public void TryParseFormat() { bool success1 = EssentialsTime.TryParse("2022-03-07T17:50:23.123+01:00", out EssentialsTime result1); string actual1 = result1.ToString(Iso8601Constants.DateTimeMilliseconds); bool success2 = EssentialsTime.TryParse("Monday, 07 March 2022 17:50:23", out EssentialsTime result2); string actual2 = result2.ToString(Iso8601Constants.DateTimeMilliseconds); Assert.IsTrue(success1); Assert.AreEqual("2022-03-07T17:50:23.123+01:00", actual1); Assert.IsTrue(success2); Assert.AreEqual("2022-03-07T17:50:23.000+01:00", actual2); }