auto today() { import std.datetime; auto d = cast(DateTime) Clock.currTime(); import std.format: format; return format("%04d/%02d/%02d", d.year, d.month, d.day); } void main() { import std.stdio; today.writeln; }