# select

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

A method for programmatically selecting a period of time.

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

`start` is a [Moment](https://legacy.fullcalendar.io/v3/moment.md) or anything the Moment constructor accepts. Same with `end`.

The `end` parameter is exclusive, meaning if you want to your last full-day selection to be Thursday, then specify Friday.

The `end` parameter is optional.

For the agenda views, whether the selection is "all-day" or not is determined by whether the given dates have an [ambiguous time](https://legacy.fullcalendar.io/v3/moment.md#ambiguously-timed). A string like `"2014-01-22"` has an ambiguous time and will result in an all-day selection.

If the [Scheduler plugin](https://legacy.fullcalendar.io/v3/scheduler.md) is installed, the final `resource` argument can be a [Resource Object](https://legacy.fullcalendar.io/v3/resource-object.md) or a raw resource ID that you would like to select. If the current view supports resources but this value is not specified, the enter range across all resources is selected.
