My fingers slipped, sorry about that. I meant datetimetostr.
Now executing
writeln('now: ',(now),' default: ',datetimetostr(now));
myformatsettings.ShortDateFormat:='yyyy-mm-dd hh:nn:ss';
writeln('now: ',(now),' myformatsettings.ShortDateFormat ',myformatsettings.ShortDateFormat,' ',datetimetostr(now,myformatsettings));
now: 4.2692421830104169E+004 default: 18-11-16 10:07:26
now: 4.2692421830104169E+004 myformatsettings.ShortDateFormat yyyy-mm-dd hh:nn:ss 2016-11-18 10
which isn't exactly what I wanted.
H