TruncateToDateTimeExtension extension

on

Methods

truncateTo(TimeUnit unit, {int startWeekday = DateTime.monday}) DateTime
Truncates DateTime to the beginning of the provided TimeUnit.