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

<br />

<br />

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

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

<br />

<br />

<br />

Output<br />

getMilliseconds() : 641<br />

getMinutes ()<br />

Javascript date getMinutes() method returns the minutes in the specified date<br />

according to local time. The value returned by getMinutes is an integer<br />

between 0 and 59.<br />

Syntax<br />

Its syntax is as follows:<br />

Date.getMinutes ()<br />

Return Value<br />

Returns the minutes in the specified date according to local time.<br />

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript getMinutes Method<br />

<br />

<br />

<br />

var dt = new Date( "December 25, 1995 23:15:00" );<br />

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

<br />

232

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

Saved successfully!

Ooh no, something went wrong!