Home > Contents > Index > 
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index 
date:convert
Converts a specific date to an epoch format integer.
Note
If you take the result of
date:convertand 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:clocklistis 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 > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.