Home > Contents > Index >
date:convert
Converts a specific date to an epoch format integer.
Note
If you take the result of
date:convert
and use it as an input value todate:clocklist
, the specific date returned is different from the originally converted date becausedate
:convert is 0-based for month and day values, whiledate:clocklist
is 1-based for month and day values.Syntax
<date
:convertvarname
="varname
" year="year
" month="month
" day="day
" [hour="hour
"] [ampm="ampm
"] [minute="minute
"] [timezone="timezone
"]/>Parameters
varname
(required)- Input and output parameter. As input, name of a variable to create with the integer date format on output.
year
(required)- Input parameter. The year number.
month
(required)- Input parameter. The month number (0-based; that is, 0=January, 11=December).
day
(required)- Input parameter. The day number (0-based; that is, Sunday=0; Saturday=6.)
hour
(optional)- Input parameter. The hour number (default is
0
).
ampm
(optional)- Input parameter. The am/pm specifier (default is
am
).
minute
(optional)- Input parameter. The minute number (default is
0
).
timezone
(optional)- Input parameter. A specified time zone.
Note
Only North American time zones are recognized. For time zones elsewhere in the world, use a plus or minus offset to GMT. For example:
timezone="-3:00"
timezone="+6:00"
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.