Date.parse

Date.parse

Class Overview | Class Members | This Package | All Packages

Syntax
public static long parse( String s )
Parameters
s
a string to be parsed as a date.
Returns
the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by the string argument.
Description
Note: parse() is deprecated.

Given a string representing a time, parse it and return the time value. This method recognizes most standard syntaxes.

It accepts many syntaxes; in particular, it recognizes the IETF standard date syntax: "Sat, 12 Aug 1995 13:30:00 GMT". It also understands the continental U.S. time-zone abbreviations, but for general use, a time-zone offset should be used: "Sat, 12 Aug 1995 13:30:00 GMT+0430" (4 hours, 30 minutes west of the Greenwich meridian). If no time zone is specified, the local time zone is assumed. GMT and UTC are considered equivalent.

See Also
DateFormat