TryEncodeDate
简述
将参数指定的Year,Month,Day作为年、月、日组成一个TDateTime类型寸到参数Date中。如果转换成功,函数返回真,否则返回假
TryEncodeDate(Year; Month; Day: Integer; Var Date: TDateTime): Boolean;
名称 | 类型 | 说明 |
---|
Year | Integer | 整数,年 |
Month | Integer | 整数,月 |
Day | Integer | 整数,日 |
Date | TDateTime | 日期,返回值 |
返回 | Boolean |
布尔值,1表示组成日期成功,0表示失败 |