Returns a date range starting from January 1st of the current year to the current date. This function does not allow parameters.
YearToDate
Range of date values
datevar range a := yearToDate(); // returns a date range from Jan 1 of this year to today. yearToDate()[1]; // returns January 1 of the current year yearToDate()[UBound(yearToDate())]; // equivalent to currentDate.