Internet Direct (Indy)
Home
PreviousUpNext
IsYYYYMMDD Function

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

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.