调用方法
调用方法:
格式化时间:" + smart_common_plus.DateTimeHelper.FormatDate(DateTime.Now, "1") + "
格式化时间:" + smart_common_plus.DateTimeHelper.FormatDate(DateTime.Now, "2") + "
连个时间差:" + smart_common_plus.DateTimeHelper.GetDiffTime(DateTime.Now, DateTime.Now.AddDays(-10), 10) + "
今年有多少周:" + smart_common_plus.DateTimeHelper.GetWeekAmount(DateTime.Now.Year) + "
返回今年第几个星期:" + smart_common_plus.DateTimeHelper.WeekOfYear(DateTime.Now) + "
调用方法:
格式化时间:" + smart_common_plus.DateTimeHelper.FormatDate(DateTime.Now, "1") + "
格式化时间:" + smart_common_plus.DateTimeHelper.FormatDate(DateTime.Now, "2") + "
连个时间差:" + smart_common_plus.DateTimeHelper.GetDiffTime(DateTime.Now, DateTime.Now.AddDays(-10), 10) + "
今年有多少周:" + smart_common_plus.DateTimeHelper.GetWeekAmount(DateTime.Now.Year) + "
返回今年第几个星期:" + smart_common_plus.DateTimeHelper.WeekOfYear(DateTime.Now) + "
![](https://img-blog.csdnimg.cn/img_convert/8476c0149c52853f53505d0d23a96ff3.png)
功能代码已经集成,可直接测试,100%可用
smartsofthelp 开发辅助优化工具
(smart_common_plus通用功能类库dll) 代码复用整理收藏(工具-MX复用代码工具宝典)
下载地址: https://pan.baidu.com/s/1t0ygDseBCM2VZYJ5fM-ZNg?pwd=8f34