# Calendar::select

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

A method for programmatically selecting a period of time. It accepts two different signatures:

<div class='spec' markdown='1'>
calendar.select( *start*, [ *end* ] )
</div>

The first method accepts individual `start` and `end` parameters, with the `end` being optional.


<div class='spec' markdown='1'>
calendar.select( { *start*, *end* , *allDay* , *resourceId* } )
</div>

The second method accepts an object with `start`, `end`, `allDay` and `resourceId` keys. Only the `start` key is required.

The values of `start` and `end` are [parsable dates](https://legacy.fullcalendar.io/v4/date-parsing.md). In line with the discussion about the [Event object](https://legacy.fullcalendar.io/v4/event-parsing.md), it is important to stress that the `end` date parameter (or key) is **exclusive**. In practice, this might mean that if you want to your last full-day selection to be Thursday, then specify Friday.

If a [resource plugin](https://fullcalendar.io/pricing) is installed, the `resourceId` key can be the ID of the [Resource object](https://legacy.fullcalendar.io/v4/resource-object.md) you would like to select. If the current view supports resources but this value is not specified, the given range is selected across all resources.
