parseForCurrentLocale

parseForCurrentLocale(inputDateString: String): Boolean updating;

The parseForCurrentLocale method of the Date primitive type assigns a date to the receiver based on the string specified in the inputDateString parameter. The string is assumed to be formatted using the conventions of your current locale. (Define the date convention for your locale by using the Date sheet of the Regional Settings Properties dialog, accessed from the Regional Settings icon in the Control Panel.)

This method returns true if the string represents a valid date; otherwise it returns false. This method handles strings in long or short date format, as shown in the following examples.

27 August 2011
Monday, 27 August 2011
2010-10-29
08/27/2010
27 Aug 99
20 noiembrie 1999      // the current locale is set to Romanian, for example

If you do not define the EnhancedLocaleSupport parameter in the [JadeEnvironment] section of the JADE initialization file on the database node or you set it to false, inconsistent results could be returned to the application server when running in JADE thin client mode and there are locale overrides, as all overrides on the application server are suppressed if enhanced locale support is not enabled. By default, formatting of locale data is done on the application server, based on the locale of the corresponding presentation client.

Non-English day and month names are handled; that is, locales that have short names with more than three characters or names with non-alphanumeric characters (for example, French and Thai).