10.07.2017 Views

javascript_tutorial

Create successful ePaper yourself

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

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!