Skip to content

Instantly share code, notes, and snippets.

@Qubadi
Qubadi / gist:f227378730bf7c62843d869d87513efc
Created February 2, 2024 09:25
Jetsmartfilters Date range: custom JavaScript code for JetSmartFilters Date Range Picker that automatically sets today's and tomorrow's dates.
We have developed a custom JavaScript code for JetSmartFilters Date Range Picker that automatically sets today's and tomorrow's dates.
Copy the code and paste in to your snippet plugins ( JS snippet )
Note: Monthnames can be changed to your language.
// Function to format date to 'F j, Y'
function formatDate(date) {