Search code examples
dateparsingpascal

Parsing date in Pascal


what's the better way of parsing date in Pascal than manually parsing character after character?

Date should be in mm.dd.yyyy format.


Solution

  • Depends on the compiler used. If you use Delphi have a look at trystrtodate, or (if with a recent Free Pascal) try dateutils.scandatetime