天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
日期时间
>
常用日期时间函数
DateTimeToStr
复制链接
简述
将TDateTime类型的参数DateTime的日期和时间转换成字符串,格式是短日期加长时间格式
定义
DateTimeToStr(DateTime: TDateTime): String;
参数
名称
类型
说明
DateTime
TDateTime
TDateTime类型,日期时间
返回
String
字符串,日期时间
范例
EndT:=now();
Return DateTimeToStr(EndT);//输出当前系统日期时间
参考
TDateTime
SetFormatLocalCode
GetFormatLocalCode
相关
EncodeDate
EncodeTime
TryEncodeDate
TryEncodeTime
DecodeDate
DecodeDateFully
DecodeTime
DayOfWeek
Date
Time
Now
CurrentYear
IncAMonth
IsLeapYear
DateToStr
TimeToStr
DateTimeToStr
StrToDate
StrToDateDef
TryStrToDate
StrToTime
Strtodatetime2
StrToTimeDef
TryStrToTime
StrToDateTime
StrToDateTimeDef
TryStrToDateTime
FormatDateTime
DateTimeToString
DateTimeToInternetStr
DateTimeGMTToCookieStr
DateTimeGMTToHttpStr
GMTToLocalDateTime