• JavaScript Video Tutorials

JavaScript - Date getUTCSeconds() Method



Description

Javascript date getUTCSeconds() method returns the seconds in the specified date according to universal time. The value returned by getUTCSeconds() is an integer between 0 and 59.

Syntax

Its syntax is as follows −

Date.getUTCSeconds()

Return Value

Returns the month in the specified date according to universal time.

Example

Try the following example.

<html>
   <head>
      <title>JavaScript getUTCSeconds Method</title>
   </head>
   
   <body>   
      <script type = "text/javascript">
         var dt = new Date();
         document.write("getUTCSeconds() : " + dt.getUTCSeconds() );
      </script>      
   </body>
</html>

Output

javascript_date_object.htm
Advertisements