StrToDateTimeDef function
Date/Time routines
Return to Introduction  Previous page  Next page
Unit
acUtils  

Declaration
function StrToDateTimeDef(const S: String;  
  DefDateTime: TDateTime): TDateTime;  

Description
The StrToDateTimeDef function converts a string to a TDateTime value. If S does not represent a valid DateTime, StrToDateTimeDef returns the DateTime passed in DefDateTime parameter.  
 
tip Used to convert TDateTime value to String without exception.  

See also
InternetTimeToDateTime function.