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

Try the following example.<br />

<br />

<br />

JavaScript getUTCDay Method<br />

<br />

<br />

<br />

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

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

<br />

<br />

<br />

Output<br />

getUTCDay() : 1<br />

getUTCFullYear ()<br />

Javascript date getUTCFullYear() method returns the year in the specified date<br />

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

absolute number that is compliant with year-2000, for example, 2008.<br />

Syntax<br />

Its syntax is as follows:<br />

Date.getUTCFullYear ()<br />

Return Value<br />

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

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript getUTCFullYear Method<br />

<br />

238

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

Saved successfully!

Ooh no, something went wrong!