Esempio n. 1
0
        public void ToIso8601FormattedDateTime()
        {
            var dateTime = DateTimeConvertor.FromIso8601FormattedDateTime("2011-08-04T07:00:00+0000");

            var result = DateTimeConvertor.ToIso8601FormattedDateTime(dateTime);

            Assert.Equal(result, "2011-08-04T07:00:00Z");
        }
            public void ShouldConvertCorrectly()
            {
                var dateTime = new DateTime(2012, 1, 28, 18, 14, 33, DateTimeKind.Utc);

                var result = DateTimeConvertor.ToIso8601FormattedDateTime(dateTime);

                Console.WriteLine(result);
            }