Visible field uses a friendly format; the stored value stays Y-m-d.

Open the calendar and pick a day.

Important JavaScript

flatpickr("#event-date", {
  altInput: true,
  altFormat: "F j, Y",
  dateFormat: "Y-m-d",
});