Date Tag

The w:date tag creates an input field with the given value represented as a date. It receives its value as a java.util.Date. The number will be formated using the current user locale or the given pattern .

Example using the user locale:

The dateStyle is an optional attribute which can receive either <short>, <medium>, <long> or <full>.

Example using a specific pattern:

Time Tag

The w:time tag works exactly in the same way as the w:date, but it supports the timeStyle attribute.