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

Return Value<br />

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

Example<br />

Try the following example.<br />

<br />

<br />

JavaScript getUTCDate Method<br />

<br />

<br />

<br />

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

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

<br />

<br />

<br />

Output<br />

getUTCDate() : 25<br />

getUTCDay ()<br />

Javascript date getUTCDay() method returns the day of the week in the<br />

specified date according to universal time. The value returned by getUTCDay is<br />

an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2<br />

for Tuesday, and so on.<br />

Syntax<br />

Its syntax is as follows:<br />

Date.getUTCDay ()<br />

Return Value<br />

Returns the day of the week in the specified date according to universal time.<br />

Example<br />

237

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

Saved successfully!

Ooh no, something went wrong!