dateOnly function
Returns the date of a NepaliDateTime object without the time component.
date is the NepaliDateTime object to format.
Returns a new NepaliDateTime object with the same date as the input but with the time component set to 00:00:00.
Implementation
NepaliDateTime dateOnly(NepaliDateTime date) {
return NepaliDateTime(date.year, date.month, date.day);
}