# columnHeaderText

> FullCalendar v3 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v3/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( *moment* ) -> *string*
</div>

This function will will receive a [moment](https://legacy.fullcalendar.io/v3/moment.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
$('#calendar').fullCalendar({
  columnHeaderText: function(mom) {
    if (mom.weekday() === 5) {
      return 'Friday!';
    } else {
      return mom.format('LLL');
    }
  }
});
```

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

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