{{getMsg('Help_YouAreHere')}}: {{page.title}} {{page.title}}

YearToDate

Returns a date range starting from January 1st of the current year to the current date. This function does not allow parameters.

Usage:

YearToDate

Returns:

Range of date values

Examples:

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.