How to default date fields to now

When wanting to default a date, date/time, or time field to now, you can use the following in the default field space for that field:

${new Date().toISOString()}

This will set the date to now using the following format:




Note that this is in GMT. The display will update to display in your current timezone for dates and date-time, but since time only pulls the time part of the date, it will display the GMT time.

For example, this date:

Will display in CST as

  • Date: 10/30/2019
  • DateTime: 10/30/2019 4:29 PM
  • Time: 8:29 PM

Did this page help you?