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.
Error Numbers
There are no possible
errno
for this tag.Example
This displays the time in the following format 3:30:00pm EST for locale en_US.
<locale:create varname="currLocale" localename="en_US" /> <dateformat:create name="_formatdate_" timestyle="full" locale="currLocale"/> <dateformat:gettime name="_formatdate_" value='<%=ics.getvar("inputdate")%>' valuetype="jdbcdate" varname="formattedtime"/> <ics:getvar name="formattedtime"/>See Also
dateformat:create
dateformat:getdate
dateformat:getdatetime
locale:create
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.