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

Indicates if a string contains a date in YYYMMDD format with delimiters.

File
function IsYYYYMMDD(
    const AData: String
): Boolean;
Parameters 
Description 
AData 
Values to examine for the desired date format. 

Boolean - True when the string contains a valid date in YYYYMMDD format.

IsYYYYMMDD is a Boolean function used to indicate if the data in AData contains a valid date. IsYYYYMMDD returns True when the detected date is in one of the following formats: 

 

YYYY-MM-DD
YYYY/MM/DD

 

In addition, IsYYYYMMDD checks to ensure that non-delimiter values in the string contain numeric values. It does not, however, perform any validation to ensure the numerics are in any specific range.

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