This JSP function retrieves the date from an XML in XML format, and not in the format of current locale. This is typically used for storing a custom sortValue attribute in a column for sorting a table.
String getDateValue(String bindingStr);
bindingStr - Required. Binding string that must be resolved into a date string.
Date string (YYYYMMDDHH24MISS structure), with the following values:
YYYY - Required. Four-digit display of year (for example, 2002).
MM - Required. Two-digit display of month (for example, 05 for May).
DD - Required. Two-digit display of date (for example, 05 for 5th).
HH24 - Required. Two-digit display of hour on a 24-hour scale (for example, 16 for 4 PM).
MI - Required. Two-digit display of minutes.
SS - Required. Two-digit display of seconds.
This example shows how the getDateValue() function stores the date in this format for subsequent client-side sorting by the user on the list of alerts for an order.
<table class="table" editable="false" width="100%" cellspacing="0">
<thead>
<tr>
<td class="tablecolumnheader"><yfc:i18n>Alert_ID</yfc:i18n></td>
<td class="tablecolumnheader"><yfc:i18n>Raised_On</yfc:i18n></td>
</tr>
</thead>
<tbody>
<yfc:loopXML binding="xml:/InboxList/@Inbox" id="Inbox">
<tr>
<td class="tablecolumn">
<yfc:getXMLValue binding="xml:/Inbox/@InboxKey"/>
</td>
<td class="tablecolumn" sortValue=
"<%=getDateValue("xml:Inbox:/Inbox/@GeneratedOn")%>">
<yfc:getXMLValue binding="xml:/Inbox/@GeneratedOn"/>
</td>
</tr>
</yfc:loopXML>
</tbody>
</table>