Defaults to PrimeFaces.widget.SimpleDateFormatCfg
. Type of the configuration
object for this widget.
The configuration of this widget
instance. Please note that no property is guaranteed to be present, you should always check for undefined
before
accessing a property. This is partly because the value of a property is not transmitted from the server to the client
when it equals the default.
Format sthe given given according to the pattern of the current widget configuration.
A date to format
The given date as a formatted string.
Computes the ordinal index of the given day in the given year.
A day to check.
The ordinal index of the given day relative to the beginning of the year, starting at 1
.
Finds the currently configured value of how many days a week must have at least to be considered a "full" week.
Weeks with less that that number of days are disregarded in getWeekInMonth
and getWeekInYear
.
Unused.
The minimal number of days a week is allowed to have to be considered a "full" week.
Converts the given date to UTC time, that is, the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the given date.
Date to convert to UTC.
The given date, converted to UTC time.
Computes the ordinal index of the week of the month of the given date.
Date with a month to check.
Minimal number of days the first week of the month is allowed to have. If the first week contains less days, the returned output is decremented by one (if you do not want to count, say, 2 days, as week).
The week of the month of the given date, starting at 0
.
Computes the ordinal index of the week of the year of the given date.
Date to check.
Minimal number of days the first week of the year is allowed to have. If the first week contains less days, the returned output is decremented by one (if you do not want to count, say, 2 days, as week).
The week of the year of the given date, starting at 0
.
A widget class should not have an explicit constructor. Instead, this initialize method is called after the widget was created. You can use this method to perform any initialization that is required. For widgets that need to create custom HTML on the client-side this is also the place where you should call your render method.
The widget configuration to be used for this widget instance. This widget
configuration is usually created on the server by the javax.faces.render.Renderer
for this component.
Creates a new date object that represents midnighht of the given year, month, and day.
A year to set. 0
repesents the year 1900
, 100
the year 2000
.
A month (of the year) to set. 0
is January, 11
is December
.
A day (of the month) to set, in the range 1...31
.
A date for the given year, month, and day at at midnight.
Generated using TypeDoc
PrimeFaces SimpleDateFormat widget
Code ported from Tim Down's http://www.timdown.co.uk/code/simpledateformat.php
Helper widget for working with
Date
s and date formats.