Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
dateformat:gettime
Converts a date string from JDBC date format or milliseconds into a displayable time string according to the format of the current DateFormat object.
Syntax
<dateformat.gettime name="date-formatobject" value="date string" valuetype="jdbcdate|milliseconds" varname="variable name" />Parameters
name (required)
- Name of the date-format object created with dateformat:create.
value (required)
- Date string in JDBC date format or milliseconds.
valuetype (required)
- Specify the value type. Possible values are as follows:
jdbcdate
- Value is in JDBC date format.milliseconds
- Value is in milliseconds.varname (required)
- Name of the variable to create with the converted date string.
Description
This tag puts a formatted time string into a variable.
errno
None.
Example
This displays a date with the information 3:30:00pm EST in the locale of the current user.
<locale.create varname="localename" localename='<%=ics.getssvar("locale")%>' /> <dateformat:create name="_formatdate_" timestyle="full" locale="localename"/> <dateformat:gettime name="_formatdate_" value='<%=ics.getvar("inputdate")%>' valuetype="jdbcdate" varname="formattedtime"/> <ics:getvar("formattedtime")>See Also
dateformat:create
dateformat:getdate
dateformat:getdatetime
locale:create
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.