Personal tools
You are here: Home Documentation FAQs Display Date only in Calendar Widget
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Display Date only in Calendar Widget

Up to Table of Contents
Warning: This item is marked as outdated.

This FAQ applies to: Plone 2.1.x

How do I configure CalendarWidget to get the date information without displaying time?

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")),


by Christian Ledermann last modified March 21, 2006 - 08:46 All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by