Personal tools
You are here: Home Products PloneFormGen Documentation FAQs How can I make a date/time field default to current time?
Document Actions

How can I make a date/time field default to current time?

Up to Table of Contents

This FAQ applies to: Any version.

In the field's "overrides" fieldset, specify as Default Expression:

python:DateTime()

Note that you may do some simple date arithmetic. To set the default a week after server time, use:

python:DateTime() + 7


by Steve McMahon last modified September 15, 2006 - 15:52

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