1.

What Are Date Static Methods?

Answer»

In addition to the many INSTANCE METHODS listed previously, the Date object also defines two static methods. These methods are INVOKED through the Date() CONSTRUCTOR itself.

Date.parse( ): Parses a string representation of a date and time and returns the internal millisecond representation of that date.

Date.UTC( ): Returns the millisecond representation of the SPECIFIED UTC date and time.

In addition to the many instance methods listed previously, the Date object also defines two static methods. These methods are invoked through the Date() constructor itself.

Date.parse( ): Parses a string representation of a date and time and returns the internal millisecond representation of that date.

Date.UTC( ): Returns the millisecond representation of the specified UTC date and time.



Discussion

No Comment Found