helper::form/date-time

Permalink
I have a form which uses form/date_time helper to allow a date to be selected. The problem is that I am also getting three drop downs for a time to be selected. I dont want the time. How can I configure the help to only provide the date field.

 
bbeng89 replied on at Permalink Reply
bbeng89
Instead of calling the datetime method of the date_time helper, just call the date() method. So:

$dh = Loader::helper('form/date_time');
$dh->date($field, $value = null, $calendarAutoStart = true);