withoutTime method

DateTime withoutTime()

Returns new DateTime without the time part for example => 2020-01-01T12:51:42.325 to => 2020-01-01T00:00:00.000

Implementation

DateTime withoutTime() => DateTime(year, month, day);