JavaScript Date toUTCString() methodThe JavaScript date toUTCString() method returns the specified date in the form of string using the UTC time zone . SyntaxThe toUTCString() method is represented by the following syntax: ReturnA string representing the specified date. JavaScript Date toUTCString() method exampleHere, we will understand toUTCString() method through various examples. Example 1Let's see an example to fetch current date in the form of string. Test it NowOutput: Thu, 09 Aug 2018 11:41:19 GMT Example 2Let's see an example to fetch the specified date in the form of string. Test it NowOutput: Fri, 15 Aug 1947 14:52:10 GMT Next TopicJavaScript Date |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India