parseDate

From Documentation
Revision as of 06:47, 30 April 2012 by Benbai (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The default method:

Date parseDate(String source, String pattern);
i.e., CommonFns.parseDate(String, String)

Parses text from the beginning of the given string to produce a date with the given pattern.

There is another extended built in function,

Date parseDate(String source, String pattern, Locale locale, TimeZone timezone, String dateStyle, String timeStyle) throws Exception {
i.e., CommonFns.parseDate(String, String, Locale, TimeZone, String, String)

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 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:

  • 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

Last Update : 2012/04/30


Version Date Content
6.0.0    


Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.