(* Collection of code snippets by Arne Vajhøj *)
(* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) *)
program dfmt;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  fmt : TFormatSettings;
  
begin
  fmt.DateSeparator := '-';
  fmt.ShortDateFormat := 'dd mm yyyy';
  writeln(datetostr(strtodate('12-04-2003', fmt)));
  fmt.DateSeparator := '/';
  fmt.ShortDateFormat := 'm d yyyy';
  writeln(datetostr(strtodate('4/12/2003', fmt)));
  readln;
end.
