How to fetch date from ACF fields

Date Time Picker field is used to fetch date from wordpress backend.

The Date Time Picker field creates a jQuery date & time selection popup.

  • Display Format
    The date format that is displayed when selecting a date.
  • Return Format
    The date format that is returned when loading the value. Please note that the value is always saved as Y-m-d H:i:s (YYYY-MM-DD HH:II:SS) in the database.
  • Week Starts On
    Specifies the day to start the week on.

Make sure that the date format given in front end and wordpress backend is same.

Leave a comment

Your email address will not be published. Required fields are marked *