public void TestDateTime()
        {
            //字符串 To DateTime
            var now   = DateTime.Now.Date.AddHours(8).AddMinutes(7).AddSeconds(6);
            var date1 = DateTimeUtility.ToDateTimeFormString(now.ToString("yyyyMMdd"));

            Assert.AreEqual(date1, now.Date);

            var date2 = DateTimeUtility.ToDateTimeFormString(now.ToString("yyyyMMddHHmmss"));

            Assert.AreEqual(date2, now);

            var date3 = DateTimeUtility.ToDateTimeFormString("2020-02-02 20:20:20", "yyyy-MM-dd HH:mm:ss");

            Assert.AreEqual(date3, new DateTime(2020, 2, 2, 20, 20, 20));

            //DateTime To 字符串
            var dateStr1 = now.ToStandardStr();

            Assert.AreEqual(dateStr1, now.ToString("yyyy-MM-dd HH:mm:ss"));

            var dateStr2 = now.ToDateStr();

            Assert.AreEqual(dateStr2, now.ToString("yyyy-MM-dd"));

            var dateStr3 = now.ToTimeStr("*");

            Assert.AreEqual(dateStr3, now.ToString("HH*mm*ss"));

            //时间戳转换
            var unixStamp = 1580646020L;
            var jsStamp   = 1580646020000L;
            var date      = new DateTime(2020, 2, 2, 20, 20, 20);
            var reDate1   = DateTimeUtility.FromUnixTimestamp(unixStamp);

            Assert.AreEqual(reDate1, date);
            var reDate2 = DateTimeUtility.FromJSTimestamp(jsStamp);

            Assert.AreEqual(reDate2, date);

            var reUnixStamp = DateTimeUtility.ToUnixTimestamp(date);

            Assert.AreEqual(reUnixStamp, unixStamp);
            var reJsStamp = DateTimeUtility.ToJSTimestamp(date);

            Assert.AreEqual(reJsStamp, jsStamp);

            //日期计算
            var week = date.WeekOfMonth();

            Assert.AreEqual(week, 1);
        }