datesOnly function
Returns a NepaliDateTimeRange with the same dates as the input but with the time component set to 00:00:00.
range is the NepaliDateTimeRange object to format.
Returns a new NepaliDateTimeRange object with the same dates as the input but with the time component set to 00:00:00.
Implementation
NepaliDateTimeRange datesOnly(NepaliDateTimeRange range) {
return NepaliDateTimeRange(
start: dateOnly(range.start), end: dateOnly(range.end));
}