date field and datepicker

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

date field and datepicker

Pierre Smits
Hi All,

In a form I have a field:

<field name="periodStartDate" position="1"
title="${uiLabelMap.PeriodStartDate}" widget-style="required">
        <date-time type="date" default-value="${groovy:
org.ofbiz.base.util.UtilDateTime.monthBegin()}"/></field>

When opening the form in a browser I get the first date of the month
displayed. But when I click on the datepicker I see following error in the
javascript console:

this.date.getFullYear is not a function

Is it so that the datepicker doesn't work with date-time field of
type="date"?

Regards,

Pierre