11.7 Task-Related Fields ↑
11.7.1 Date
The word date
can be used as both a label and a type.
In addition to date
itself, this field type will be inferred for any label containing the consecutive letters date
.
Add a Date field to a Collection in order to track the date each note was officially published, or a due date for each note. A date may be expressed in any of a number of common formats. It may also be a partial date, such as a year, or a year and a month. It may or may not contain a specific time of day. A Date field may be left blank, and this is its default value.
A Collection may have one or more fields of type date
. The first such field will be used as the primary date field for the Note when it comes to any operations (sorting, recurrence, etc.) that assume a single date field.
A field of type date
typically contains a year, a month and a day of the month. A specific time of day is not meant to be included. If an approximate date is intended, then the day may be omitted, or the month and the day.
When editing, a date field can be entered as free-form text. Notenik will attempt to parse any reasonable date expression into a year, month and day for internal manipulation. Other widgets may be available to set the field to Today’s date, to allow the user to pick a date from a calendar, and/or to allow them to increment or decrement the individual date components (year, month and day).
For Display purposes, the day of the week will generally be shown alongside the year, month and day of month.
When used as a sort field, date values will be sorted by year, month and day, no matter how they were originally entered. Blank dates can be sorted either first or last, with the default being last.
Note that the Date field has several helpful editing tools. You can enter a free-form date yourself, or you can use a Calendar widget to pick dates from a Calendar. You can use the Today button to set the date to Today’s date, and you can use the Recurs button to apply the Recurs rule, if one has been supplied.
If you need to export a Collection in a format suitable for sorting by Date, then you may wish to use the Standardize Dates to YMD command under the Collection menu to make sure that all dates are stored in a yyyy-mm-dd format suitable for sorting.
Next: Status