createDate method


Converts a date string to a java.util.Date object. The string is parsed according to the conventions of the user's current locale. The first attempt to parse the string uses the FULL format. If that fails, an attempt is made with the LONG format, then the MEDIUM format, and finally the SHORT format. Time information is ignored.

Syntax

Date = ScriptHelper.createDate(datestring)

Applies to

ScriptHelper object.

Parameters

datestring
String. The date string to be translated.

Return value

Date. A Date object, or null if the string cannot be translated.

See also

ScriptHelper applet