MDL-18375 calendar: declare the userdate function responsible for displaying dates in the calendar type