# changeView

> FullCalendar v3 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v3/changeView
>
> Latest version (v7): https://fullcalendar.io/docs/Calendar-changeView.md

Immediately switches to a different view.

<div class='spec' markdown='1'>
.fullCalendar( 'changeView', viewName, *dateOrRange* )
</div>

`viewName` must be the name of one of the available views (a string).

```js
$('#calendar').fullCalendar('changeView', 'agendaDay');
```

If you'd like to navigate to a new date while simultaneously switching to a new view, you can specify a date parameter:

```js
$('#calendar').fullCalendar('changeView', 'agendaDay', '2017-06-01');
```

If you are using [Custom View](https://legacy.fullcalendar.io/v3/custom-view-with-settings.md), you can change the [visibleRange](https://legacy.fullcalendar.io/v3/visibleRange.md) in the same way:

```js
$('#calendar').fullCalendar('changeView', 'agenda', {
  start: '2017-06-01',
  end: '2017-06-05'
});
```

This date/visibleRange parameter was added in version 3.3.0.
