A repository item can have properties that are set to the current date or time, using the java.util.Date, java.sql.Date, or java.sql.Timestamp classes. You can have a property whose value is set to the current time or date by setting the feature attribute useNowForDefault to true. For example:

<property name="creationDate" data-type="timestamp">
  <attribute name="useNowForDefault" value="true"/>

You can query on date and timestamp properties by using the RQL functions date and timestamp. For more information, see Date and Timestamp Queries in the Repository Query Language chapter.

For more information about this technique, see the Assigning FeatureDescriptorValues with the <attribute> Tag section in this chapter.