10.02.2018 Views

js_tutorial

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Javascript<br />

universal time.<br />

setUTCMonth()<br />

setUTCSeconds()<br />

setYear()<br />

toDateString()<br />

toGMTString()<br />

toLocaleDateString()<br />

toLocaleFormat()<br />

toLocaleString()<br />

toLocaleTimeString()<br />

toSource()<br />

toString()<br />

toTimeString()<br />

toUTCString()<br />

valueOf()<br />

Sets the month for a specified date according to<br />

universal time.<br />

Sets the seconds for a specified date according to<br />

universal time.<br />

Deprecated - Sets the year for a specified date<br />

according to local time. Use setFullYear instead.<br />

Returns the "date" portion of the Date as a humanreadable<br />

string.<br />

Deprecated - Converts a date to a string, using the<br />

Internet GMT conventions. Use toUTCString instead.<br />

Returns the "date" portion of the Date as a string,<br />

using the current locale's conventions.<br />

Converts a date to a string, using a format string.<br />

Converts a date to a string, using the current<br />

locale's conventions.<br />

Returns the "time" portion of the Date as a string,<br />

using the current locale's conventions.<br />

Returns a string representing the source for an<br />

equivalent Date object; you can use this value to<br />

create a new object.<br />

Returns a string representing the specified Date<br />

object.<br />

Returns the "time" portion of the Date as a humanreadable<br />

string.<br />

Converts a date to a string, using the universal time<br />

convention.<br />

Returns the primitive value of a Date object.<br />

In the following sections, we will have a few examples to demonstrate the usage<br />

of Date methods.<br />

226

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!