Skip to content

Delphi: Convert any string to date - even "no date"

Converting strings to dates never seemed to be straightforward. First, specifying the source for all the different date component was difficult.

Second, if the conversion is unsuccessful and "no date" has been defined, it could not be expressed with TDate or TDateTime.

Possible solutions for both issues will be presented in this πŸ”— 5-Minute-Snack.