help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

TryEncodeDate

Try to encode a date, and indicate success.

Declaration

Source position: datih.inc line 101

function TryEncodeDate(

  Year: Word;

  Month: Word;

  Day: Word;

  out Date: TDateTime

):Boolean;

Description

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 D. The function will return True in this case. If an inbvalid argument is passed, then False will be returned.

Errors

None. If an error occurs during the encoding, False is returned.

See also

EncodeDate

  

Encode a Year,Month,Day to a TDateTime value.

DecodeDateFully

  

Decode a date with additional date of the week.

DecodeDate

  

Decode a TDateTime to a year,month,day triplet

TryEncodeTime

  

Try to encode a time, and indicate success.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505