天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
日期时间
>
分解函数
YearOf
复制链接
简述
返回参数AValue中包含的年份信息。值域[1,9999]
定义
YearOf(AValue: TDateTime): Integer;
参数
名称
类型
说明
AValue
TDateTime
日期类型
范例
year:=Yearof(strToDate('2010-08-08'));
return year;
//输出: 2010
参考
TDateTime
DecodeDate
MonthOf
DayOf
HourOf
MinuteOf
SecondOf
MilliSecondOf
相关
DateOf
TimeOf
YearOf
MonthOf
DayOf
HourOf
MinuteOf
SecondOf
MilliSecondOf