I'm trying to use Craft's native datepicker with a plugin I've made for the admin section.
I've got some code that works;
{% from "_includes/forms" import date %}
<h3>Start Date</h3>
{{ date({
id: 'startDate',
name: 'startDate',
value: now
}) }}
but I can't seem to get it to work with any other date, no matter what I do.
In my URL I have;
startDate=09/02/2017
and in my twig template I have;
{% set startDate = craft.request.getParam('startDate') %}
What do I need to do to startDate
in order to get the date picker to read that date?