- Creates a simple formatDates method that handle date formatting before sending it as params instead of creating scoped variable (useless) - Put key to `undefined` (ie. don't then the params) if no date: already handled by the backend
flatpickr_clear