[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'LazConfigStorage' (#lazutils)

CfgStrToDate

Converts a string with a date/time value using the specified format to the TDateTime output value.

Declaration

Source position: lazconfigstorage.pas line 154

function CfgStrToDate(

  const s: string;

  out Date: TDateTime;

  const aFormat: string = DateAsCfgStrFormat

):Boolean;

Arguments

s

  

String with the date and/or time value converted in the routine.

Date

  

Returns the TDateTime value for the specified string, or an empty TDateTime value (0.0) when the routine returns False.

aFormat

  

Format used for the date/time value passed in the s argument.

Function result

True if the string was successfully converted to a TDateTIme value in the routine.

Version info

Added in LazUtils version 3.0.


Version 4.0 Generated 2025-05-03 Home