Highlighted Dates in Calendar

Similar to Loaders, special dates are executable javascript functions defined in Custom Metadata. Below you can find the template for a special date (4th of July) - the global "date" variable is the date the scheduler renders. If you return a string, the text will be displayed in the day cell.

Global Variables

  • date - the current cell's date

@return - The return type must be a string or a null.

return (

   date.getMonth() == 6 &&

   date.getDate() == 4

) ? 'July 4th' : null