10.02.2018 Views

js_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Javascript<br />

Syntax<br />

Its syntax is as follows:<br />

Date.getUTCMonth ()<br />

Return Value<br />

Returns the month in the specified date according to universal time.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript getUTCMonth Method<br />

<br />

<br />

<br />

var dt = new Date();<br />

document.write("getUTCMonth() : " + dt.getUTCMonth() );<br />

<br />

<br />

<br />

Output<br />

getUTCMonth() : 2<br />

getUTCSeconds ()<br />

Javascript date getUTCSeconds() method returns the seconds in the specified<br />

date according to universal time. The value returned by getUTCSeconds is an<br />

integer between 0 and 59.<br />

Syntax<br />

Its syntax is as follows:<br />

Date.getUTCSeconds ()<br />

Return Value<br />

Returns the month in the specified date according to universal time.<br />

242

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

Saved successfully!

Ooh no, something went wrong!