10.07.2017 Views

javascript_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 />

Try the following example.<br />

<br />

<br />

JavaScript setUTCMinutes Method<br />

<br />

<br />

<br />

var dt = new Date( "Aug 28, 2008 13:30:00" );<br />

dt.setUTCMinutes( 65 );<br />

document.write( dt );<br />

<br />

<br />

<br />

Output<br />

Thu Aug 28 2008 14:35:00 GMT+0530 (India Standard Time)<br />

setUTC Month ()<br />

Javascript date setUTCMonth ( ) method sets the month for a specified date<br />

according to universal time.<br />

Syntax<br />

The following syntax for setUTCMonth ( ) Method.<br />

Date.setUTCMonth ( monthvalue )<br />

Note: Parameters in the bracket are always optional.<br />

Parameter Detail<br />

monthValue : An integer between 0 and 11, representing the month.<br />

Example<br />

Try the following example.<br />

258

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

Saved successfully!

Ooh no, something went wrong!