Allow users to select dates or date ranges via a calendar overlay. Perfect for filtering data or scheduling events.
Use date inputs instead of date pickers for far-future or past events such as birthdates.
Attach the date picker to a date input for more precise date selection control.
Enable selection of date ranges for reporting, booking systems, or any scenario requiring a start and end date.
Use separate inputs for start and end dates to provide a clearer interface for date range selection.
Allow users to select from frequently used ranges like "Last 7 days" or "This month".
Key
|
Label
|
Constructor
|
Date Range
|
---|---|---|---|
today | Today | DateRange::today() | Current day |
yesterday | Yesterday | DateRange::yesterday() | Previous day |
thisWeek | This Week | DateRange::thisWeek() | Current week |
lastWeek | Last Week | DateRange::lastWeek() | Previous week |
last7Days | Last 7 Days | DateRange::last7Days() | Previous 7 days |
thisMonth | This Month | DateRange::thisMonth() | Current month |
lastMonth | Last Month | DateRange::lastMonth() | Previous month |
thisQuarter | This Quarter | DateRange::thisQuarter() | Current quarter |
lastQuarter | Last Quarter | DateRange::lastQuarter() | Previous quarter |
thisYear | This Year | DateRange::thisYear() | Current year |
lastYear | Last Year | DateRange::lastYear() | Previous year |
last14Days | Last 14 Days | DateRange::last14Days() | Previous 14 days |
last30Days | Last 30 Days | DateRange::last30Days() | Previous 30 days |
last3Months | Last 3 Months | DateRange::last3Months() | Previous 3 months |
last6Months | Last 6 Months | DateRange::last6Months() | Previous 6 months |
yearToDate | Year to Date | DateRange::yearToDate() | January 1st to today |
allTime | All Time | DateRange::allTime($start) | Minimum supplied date to today |
custom | Custom Range | DateRange::custom() | User-defined date range |
Add a shortcut button to quickly navigate to today's date. When viewing a different month, it jumps to the current month. When already viewing the current month, it selects today's date.
Enable quick navigation by making the month and year in the header selectable.
Display a consistent number of weeks in every month. Prevents layout shifts when navigating between months with different numbers of weeks.
By deafult the first day of the week will be automatically set based on the user's locale. You can override this by setting the start-day attribute to any day of the week.
Set the date that the calendar will open to. Otherwise, the calendar defaults to the selected date's month, or the current month.