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

« Back to Table of Contents

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