Field Type – Static Label + Date

WordPress Plugin Staff List – Field Type – Static Label + Date

Staff List saves dates in ISO 8601 format as: YYYY-MM-DD.

ISO 8601 date format.

When dates are represented with numbers they can be interpreted in different ways. For example, 01/05/12 could mean January 5, 2012, or May 1, 2012. In a business context it can be frustrating and very expensive.
ISO 8601 tackles this uncertainty by setting out an internationally agreed way to represent dates: YYYY-MM-DD
For example, September 24, 2019 is represented as 2019-09-24.

Data entry.

Staff List provides text box with integrated date picker. Check the live demo below.
The input UI generally varies from browser to browser. In unsupported browsers, the control degrades gracefully to input type=”text”.
The user can enter a date, either using a text box that automatically validates the content, or using calendar control.
The resulting value is formatted and send as predictable output to the server – YYYY-MM-DD.

Date picker widget – browser support.

The date widget works in Chrome, Firefox, and Edge on desktop. It does not work in Safari for desktop. Just about all mobile browsers, including Safari, Chrome, and Firefox, support the date-related types, and all of them offer a nice native date picker.
For current browser support see – input-date.

Safari for desktop.

Sadly, support for date input seems to be completely absent in Safari for its desktop version (up to 14). The date input fields are presented as if they were text boxes.
Dates have to be entered manually in the format: YYYY-MM-DD like: 2019-05-29

CSV data import.

Data import with Staff List CSV plugin extension.
Dates imported directly into the date field have to be in YYYY-MM-DD format.
There is no validation or error checking. They will be saved as is.
If you can’t provide required formatting, you may consider choosing some other field type.

Date field arithmetics.

Since dates are stored as stings, they can’t be used directly in arithmetic expressions. For example, to subtract a DATE value from another DATE value the PHP functions are required.
Staff List Birthdays & Anniversaries plugin extension includes all necessary functions to run required calculation and render the proper output.
Staff Template – Date Display Format.
Date saved as YYYY-MM-DD can be used for sorting or calculations but may be not suitable for displaying on staff member pages. For that purpose there is built-in option to choose the date display format.
WordPress plugin, Staff List, field type date, data display formats
The names of the months.
You can display the month name instead of a number
Staff List provides names of the months in English. They are built-in and require only selecting one of the formats.
For other languages, there is an option to add custom names: Staff List Pro > Admin > Months
It’s available in both free and pro versions.
/wordpress plugin staff list, field type date, month names
Staff Template – Static Label
Static label is optional.