Updating from flatpickr v2

    The option was a hack using date manipulation.It didn’t yield the correct timezone.Resulting dates were not always accurate.

    Use the dateFormat: "Z" option, which is a shortcut for the ISO date format.It contains the correct timezone information and is supported by nearly every database.

    Simplified invocation

    In v2, users would often get confused about which invocation syntax to use.There was which only supported elements and flatpickr() which only supported selector strings.

    It wasn’t always easy to remember, and the two are now merged in v3.

    For those using with <script src="…/flatpickr.js"… - only a single change is necessary.Simply find and replace Flatpickr with flatpickr in your scripts.

    Note that this also includes statements like Flatpickr.defaultConfig….Just swap out Flatpickr for and you’re good to go.