Thread overview
Using dates to get days count
Sep 29, 2017
Joel
Sep 29, 2017
rikki cattermole
Sep 29, 2017
Joel
September 29, 2017
How do I count the days between to dates?
September 29, 2017
On 29/09/2017 7:29 AM, Joel wrote:
> How do I count the days between to dates?

https://dlang.org/phobos/std_datetime_date.html#.Date.opBinary.2
https://dlang.org/phobos/core_time.html#.Duration.total
September 29, 2017
On Friday, 29 September 2017 at 06:32:19 UTC, rikki cattermole wrote:
> On 29/09/2017 7:29 AM, Joel wrote:
>> How do I count the days between to dates?
>
> https://dlang.org/phobos/std_datetime_date.html#.Date.opBinary.2
> https://dlang.org/phobos/core_time.html#.Duration.total

Thanks rikki. I did know the opBinary thing. I was actually using a version where I used the string returned from the date1 - date2, (eg. I pretty much times the weeks by 7 and added the left over days).