Display Date only in Calendar Widget
Up to Table of ContentsThis FAQ applies to: Plone 2.1.x
The calendar widget has an option called "show_hm" which should allow you
to choose whether you want hours/minutes or not.
According to some people on a different list, the argument 'show_hm'
should be working in the edit forms as long as you are using Plone 2.1.
For display, you'll have to use strftime().
Example:
DateTimeField('startDate',
required=True,
searchable=True,
accessor='start',
default_method=DateTime,
languageIndependent=True,
widget = CalendarWidget(
description=("Enter the starting date and time, or click "
"the calendar icon and select it. "),
description_msgid = "help_event_start",
label="Event Starts",
show_hm = False,
label_msgid = "label_event_start",
i18n_domain = "plone")),