parseDate"
From Documentation
(Created page with "{{ZUMLReferencePageHeader}} The default method: <source lang="java"> Date parseDate(String source, String pattern); </source> :i.e., <javadoc method="parseDate(java.lang.Strin...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
Parses text from the beginning of the given string to produce a date with the given pattern. | Parses text from the beginning of the given string to produce a date with the given pattern. | ||
− | There is another extended built in function, | + | There is another extended built-in function, <javadoc method="parseDate(java.lang.String, java.lang.String, java.util.Locale, java.util.TimeZone, java.lang.String, java.lang.String)">org.zkoss.xel.fn.CommonFns</javadoc>, not declared in the taglib. Parses text from the beginning of the given string to produce a date with the given pattern, locale, timezone, date style and time style. |
− | + | You can call it by [[ZUML%20Reference/EL%20Expressions/Static%20Fields%20and%20Methods| EL]] or declaring a [[ZUML_Reference/ZUML/Processing_Instructions/xel-method| xel-method]]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | You can | ||
<blockquote> | <blockquote> |
Latest revision as of 07:57, 27 May 2021
The default method:
Date parseDate(String source, String pattern);
Parses text from the beginning of the given string to produce a date with the given pattern.
There is another extended built-in function, CommonFns.parseDate(String, String, Locale, TimeZone, String, String), not declared in the taglib. Parses text from the beginning of the given string to produce a date with the given pattern, locale, timezone, date style and time style.
You can call it by EL or declaring a xel-method.
Note: If the date style / time style is applied, the pattern will be ignored.
Parameters: In both default and extended function:
- source - the text to parse
- 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 |