UI-Component Sets
Project Documentation


Tag name: <f:convertDateTime>
Converter class: javax.faces.convert.DateTimeConverter
Tag class: org.apache.myfaces.taglib.core.ConvertDateTimeTag
converter id: javax.faces.DateTime
This tag associates a date time converter with the nearest parent UIComponent. Unless otherwise specified, all attributes accept static values or EL expressions. see Javadoc of JSF Specification


Name Type Supports EL? Description
binding javax.faces.convert.DateTimeConverter Only EL A ValueExpression that evaluates to a DateTimeConverter.
dateStyle String Yes The style of the date. Values include: default, short, medium, long, and full.
locale java.util.Locale Yes The name of the locale to be used, instead of the default.
pattern String Yes A custom Date formatting pattern, in the format used by java.text.SimpleDateFormat.
timeStyle String Yes The style of the time. Values include: default, short, medium, long, and full.
timeZone java.util.TimeZone Yes The time zone to use instead of GMT (the default timezone). When this value is a value-binding to a TimeZone instance, that timezone is used. Otherwise this value is treated as a String containing a timezone id, ie as the ID parameter of method java.util.TimeZone.getTimeZone(String).
type String Yes Specifies whether the date, time, or both should be parsed/formatted. Values include: date, time, and both. Default based on setting of timeStyle and dateStyle.