| sidebar_label | end |
|---|---|
| title | end |
| description | You can learn about the end date in the documentation of the DHTMLX JavaScript Booking library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Booking. |
@short: Optional. Defines the date until which to show available slots
end?: Date;Date- the end date until which to display available slots; the default value is one year from the current date.
new booking.Booking("#root", {
data,
end: new Date(2025, 11, 11),
// other parameters
});The snippet below shows how to set the start and end dates:
<iframe src="https://snippet.dhtmlx.com/cc28whe7?mode=result" frameborder="0" class="snippet_iframe" width="100%" height="600"></iframe>