pascalabcnet/TestSuite/formatstring5.pas
Бондарев Иван 154ecc1533 fix #896
2018-06-07 20:30:28 +02:00

6 lines
154 B
ObjectPascal

begin
var t := System.DateTime.Now;
var s1 := string.Format('date is {0:dd.MM.yy}',t);
var s2 := $'date is {t:dd.MM.yy}';
assert(s1 = s2);
end.