Library Spotlight

Spotlight: Flatpickr for Date Selection

Add elegant date and time pickers with Flatpickr.

M. WarbleOctober 22, 20261 min read
Spotlight: Flatpickr for Date Selection

Flatpickr is a lightweight, powerful date picker. Oorian's wrapper provides full access to its features.

Date Picker

FpDatePicker datePicker = new FpDatePicker();
datePicker.setDateFormat("Y-m-d");
datePicker.setMinDate(LocalDate.now());
datePicker.setDefaultDate(LocalDate.now().plusDays(7));
body.addElement(datePicker);

Date Range

FpDatePicker rangePicker = new FpDatePicker();
rangePicker.setMode(FpMode.RANGE);
rangePicker.registerListener(this, DateRangeEvent.class);

Time Picker

FpDatePicker timePicker = new FpDatePicker();
timePicker.setEnableTime(true);
timePicker.setNoCalendar(true);

Conclusion

Flatpickr provides a beautiful, consistent date picking experience across all browsers.

Related Articles

Security

Security by Default: How Oorian Protects Your Applications

January 11, 2026
Announcement

Why We Built Oorian: The Story Behind the Framework

January 7, 2026
Tutorial

Getting Started with Oorian: Your First Java Web Application

December 31, 2025