next up previous contents
Next: toGMTString Up: Methods Previous: UTC   Contents


parse

Description

Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.


Syntax

Date.parse(value)


Parameters

value
A string contains date


Returns

An integer


Example

d = new Date(Date.parse("1989/12/28 12:30:5 GMT-700"));
trace(d.toGMTString());
//output: Thu, 28 Dec 1989 19:30:05 GMT




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.