print yyyy-mm-dd
MrSmith via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 20 12:38:07 PST 2014
On Thursday, 20 November 2014 at 13:50:49 UTC, Suliman wrote:
> I can't understand how to get date in format yyyy-MM-dd from
> Clock.currTime
> auto time = Clock.currTime;
>
> And what next? Could anybody give any examples?
http://dpaste.dzfl.pl/73c0438f9d1e
currTime returns SysTime;
You can then cast is to Date.
And Date has toISOExtString which converts Date to a string with
the format YYYY-MM-DD.
More information about the Digitalmars-d-learn
mailing list