formatDate"
From Documentation
(Created page with "{{ZUMLReferencePageHeader}} The default method: <source lang="java"> String formatDate(Date date, String pattern) </source> :i.e., <javadoc method="formatDate(java.util.Date, ...") |
|||
Line 4: | Line 4: | ||
<source lang="java"> | <source lang="java"> | ||
− | String formatDate(Date date, String pattern) | + | String formatDate(Date date, String pattern); |
</source> | </source> | ||
Line 14: | Line 14: | ||
<source lang="java"> | <source lang="java"> | ||
− | String formatDate(Date date, String pattern, Locale locale, TimeZone timezone, String dateStyle, String timeStyle) | + | String formatDate(Date date, String pattern, Locale locale, TimeZone timezone, String dateStyle, String timeStyle); |
</source> | </source> | ||
Revision as of 06:47, 30 April 2012
The default method:
String formatDate(Date date, String pattern);
Formats a Date into a date/time string with the given pattern.
There is another extended built in function,
String formatDate(Date date, String pattern, Locale locale, TimeZone timezone, String dateStyle, String timeStyle);
Formats a Date into a date/time string with the given pattern, locale, timezone, date style and time style.
You can define a method to use this function by xel-method
Note: If the date style / time style is applied, the pattern will be ignored.
Parameters: In both default and extended function:
- date - the Date to format
- pattern - the pattern to apply
In extended function only:
- locale - the locale to apply
- timezone - the timezone to apply
- dateStyle - the date style to apply
- timeStyle - the time style to apply
Version History
Version | Date | Content |
---|---|---|
6.0.0 |