Data FAQ
How can I get the current date and time as the default value in a date field?
I have a date field on datatype form. How can I get the current date and time as its default value?
Answer:
To have the current date and time as the default value in a date field:
- Edit the data type and edit the date field.
- On the Advanced tab, click the Default value button and select the Composite.Utils.Date.Now function.
This will ensure new records have 'now' as their default value.