Icon IsDateTime

Unit: WebCore

Available In: Client and Server Applications

function IsDateTime(const Value: String): Boolean

The IsDateTime function returns True if the input parameter is a valid date/time string. The required format of the string is determined by the TFormatSettings ShortDateFormat and ShortTimeFormat properties.

Examples

X := IsDateTime('2/13/2012 12:10 PM');  // X is True
Image