TimeHelperGetFormatDate Method | Helper帮助文档 |
将时间格式化成 年月日 的形式,如果时间为null,返回当前系统时间
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public string GetFormatDate( DateTime dt, char Separator )
Public Function GetFormatDate ( dt As DateTime, Separator As Char ) As String
public: String^ GetFormatDate( DateTime dt, wchar_t Separator )
member GetFormatDate : dt : DateTime * Separator : char -> string
Parameters
- dt
- Type: SystemDateTime
年月日分隔符 - Separator
- Type: SystemChar
[Missing <param name="Separator"/> documentation for "M:HD.Common.TimeHelper.GetFormatDate(System.DateTime,System.Char)"]
Return Value
Type: String[Missing <returns> documentation for "M:HD.Common.TimeHelper.GetFormatDate(System.DateTime,System.Char)"]
See Also