I have `<g:datePicker>` in my view in **Grails2.5.1** application, the returned value for this filed in the controller is `date.struct` , how i could change this value to actual date .
here is my view :

```
<div class="fieldcontain ${hasErrors(bean: empRefInstance, field: 'endDate', 'error')} ">
<label for="endDate">
    <g:message code="empRef.endDate.label" default="End Date" />

</label>
<g:datePicker name="endDate" relativeYears="[-90..0]" precision="day"  value="${empRefInstance?.endDate}" default="none" noSelection="['null':'Present']" />

```

here is how i access it in the controller:

```
println "date : " +params.endDate"

```