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



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

StrToDateTimeDef

Convert string to date/time, returning a default value

Declaration

Source position: datih.inc line 137

function StrToDateTimeDef(

  const S: String;

  const Defvalue: TDateTime

):TDateTime;

Description

StrToDateTimeDef tries to convert the string S to a valid TDateTime date and time value, and returns DefValue if S does not contain a valid date-time indication.

Errors

None.

See also

StrToTimeDef

  

Convert string to time, returning a default value

StrToDateDef

  

Convert string to date, returning a default value

TryStrToDateTime

  

Try to convert a string with date/time indication to a TDateTime value

StrToDateTime

  

Convert a date/time string to a TDateTime value.

Notes

 No notes exist for this page yet. 





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