TimeHelper Methods | Helper帮助文档 |
The TimeHelper type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
DateDiff | |
![]() ![]() |
DateDiff2 |
获得两个日期的间隔
|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() ![]() |
FormatDate |
格式化日期时间
|
![]() |
GetFormatDate |
将时间格式化成 年月日 的形式,如果时间为null,返回当前系统时间
|
![]() |
GetFormatTime |
将时间格式化成 时分秒 的形式,如果时间为null,返回当前系统时间
|
![]() |
GetHashCode | (Inherited from Object.) |
![]() ![]() |
GetMonthLastDate |
返回某年某月最后一天
|
![]() ![]() |
GetRandomTime |
得到随机日期
|
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() ![]() |
ReturnDateFormat |
返回每月的第一天和最后一天
|
![]() ![]() |
SecondToMinute |
把秒转换成分钟
|
![]() |
ToString | (Inherited from Object.) |
See Also