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
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).