in myfaces-html5-core/src/main/java/org/apache/myfaces/html5/renderkit/input/util/Html5DateTimeFormatUtils.java [85:118]
public static String formatDateTime(Date value, String type) throws FacesException
{
if (value == null)
return null;
if (HTML5.INPUT_TYPE_DATETIME.equals(type))
{
return _formatGlobalDateTime(value);
}
else if (HTML5.INPUT_TYPE_DATETIME_LOCAL.equals(type))
{
return _formatLocalDateTime(value);
}
else if (HTML5.INPUT_TYPE_DATE.equals(type))
{
return _formatDate(value);
}
else if (HTML5.INPUT_TYPE_TIME.equals(type))
{
return _formatTime(value);
}
else if (HTML5.INPUT_TYPE_MONTH.equals(type))
{
return _formatMonth(value);
}
else if (HTML5.INPUT_TYPE_WEEK.equals(type))
{
return _formatWeek(value);
}
else
{
throw new FacesException("Type " + type + " is not applicable.");
}
}