# columnHeaderText

> FullCalendar v4 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v4/columnHeaderText
>
> Latest version (v7): https://fullcalendar.io/docs/day-header-render-hooks.md

Programmatically generates text that will be displayed on the calendar's column headings.

<div class='spec' markdown='1'>
function( *date* ) -> *string*
</div>

This function will will receive a [date](https://legacy.fullcalendar.io/v4/date-object.md) object that represents a single column's date and must return a string to be displayed. The text will be escaped before being inserted into the DOM. You do not need to worry about escaping HTML entities.

Example:

```js
var calendar = new Calendar(calendarEl, {
  columnHeaderText: function(date) {
    if (date.getDay() === 5) {
      return 'Friday!';
    } else {
      return date.toString();
    }
  }
});
```

If you are simply stringifying a date with a formatting string, using [columnHeaderFormat](https://legacy.fullcalendar.io/v4/columnHeaderFormat.md) is more elegant.

If you need to generate HTML, use [columnHeaderHtml](https://legacy.fullcalendar.io/v4/columnHeaderHtml.md) instead.
