Try to encode a date, and indicate success.
Source position: datih.inc line 119
function TryEncodeDate( |
Year: Word; |
Month: Word; |
Day: Word; |
out Date: TDateTime |
):Boolean; |
TryEncodeDate will check the validity of the Year, Month and Day arguments, and if they are all valid, then they will be encoded as a TDateTime value and returned in Date. The function will return True in this case. If an invalid argument is passed, then False will be returned.
None. If an error occurs during the encoding, False is returned.
|
Encode a Year,Month,Day to a TDateTime value. |
|
|
Decode a date with additional date of the week. |
|
|
Decode a TDateTime to a year,month,day triplet. |
|
|
Try to encode a time, and indicate success. |