Topic Path: Symbol Reference > Functions > DateDDStrMonthYY Function
ContentsIndexHome
PreviousUpNext
DateDDStrMonthYY Function

Converts a string to a native date/time value.

File
function DateDDStrMonthYY(
    const AData: String; 
    const ADelin: String = '-'
): TIdDateTime;
Parameters 
Description 
AData 
String value with the date information.
 
ADelin 
Delimiter to use when scanning values in AData. Default value is '-'. 

TIdDateTime - Native date/time value constructed using values in AData.

DateDDStrMonthYY is a TIdDateTime function used to convert the string in AData to a native date/time value. AData is expressed using the day, month, and year components for a date value and separated by the delimter specified in ADelin. 

For example, all of the following are valid formats for the string in AData: 

 

  D-M-YY
  D-MM-YY
  DD-M-YY
  DD-MM-YY

 

The return value for the method can contain an empty date when any value in AData exceeds the limits applicable to the individual date components.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.