Is it possible to have a date input field in a control panel view page?

Is there any kind of build in javascript library for the date calendar etc?

Thank you.

  • What version of EE? Dec 18, 2015 at 17:48
  • Hi Derek. Expression Engine 3.
    – ccdavies
    Dec 18, 2015 at 19:52

1 Answer 1


Take a look at the display_field() method of the first party Date fieldtype. The key thing is to use a text input with a rel="date-picker" attribute, but there are a few other things that need to be loaded, depending on where in the CP you are displaying it (some language strings, for example).

  • Thank you Derek. I have taken a look at the date fieldtype and see the display_field() function, but I don't really understand how I would call this function into my mcp. Would you be able to explain?
    – ccdavies
    Dec 18, 2015 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.