Setting dates

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 10 21:01:24 PDT 2014


I've been trying to set a date for my program (a small struct):

import std.datetime;

auto date = cast(DateTime)Clock.currTime();
setDate(date.day, date.month, date.year);

Problem is that day & month are not integers. And date.day.to!int 
doesn't work either.


More information about the Digitalmars-d-learn mailing list