dateutils


Standard Syntax:
     <%@ taglib prefix="du" uri="dateutils" %>

XML Syntax:
     <anyxmlelement xmlns:du="dateutils" />

Date-related EL functions

Tag Library Information
Display Namedateutils
Version1.0
Short Namedu
URIdateutils
 

Function Summary
java.lang.StringformatDateTime( java.util.Calendar, java.lang.String, java.lang.String) Format a date and time based on a given pattern, or a builtin style (short, medium, long or full). Also supports different styles for date and time with the syntax "date_style;time_style" (e.g. "short;long")
java.lang.StringformatDateTimeWithLocale( java.util.Calendar, java.lang.String, java.lang.String) Format a date and time with a specified language (lowercase two-letter ISO-639 code) based on a given pattern, or a builtin style (short, medium, long or full). Also supports different styles for date and time with the syntax "date_style;time_style" (e.g. "short;long")
java.lang.StringformatDate( java.util.Calendar, java.lang.String, java.lang.String)Format a date based on a given pattern, or a builtin style (short, medium, long or full)
java.lang.StringformatTime( java.util.Calendar, java.lang.String, java.lang.String)Format a time based on a given pattern, or a builtin style (short, medium, long or full)
java.lang.StringformatInterval( java.lang.Long)format a milliseconds interval as a string like 523h 22m 18s
java.lang.LonggetMillisFromNow( java.util.Calendar)retrieve the milliseconds in difference between now and the input date
java.util.CalendarparseDate( java.lang.String, java.lang.String)parse a date with a given pattern and return the parsed date as a calendar object (null safe)
java.util.CalendarparseXsdDate( java.lang.String)parse a date in XSD format and return the parsed date as a calendar object (null safe)
java.lang.StringtoXsdDate( java.util.Calendar)format a date in XSD format (null safe)
booleancurrentDateIncluded( java.util.Calendar, java.util.Calendar)Tests if the current date is between the specified time interval (limits included)
 


Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-3 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.