The toUTCString() method is represented by the following syntax:
A string representing the specified date.
Here, we will understand toUTCString() method through various examples.
Let's see an example to fetch current date in the form of string.Test it Now
Thu, 09 Aug 2018 11:41:19 GMT
Let's see an example to fetch the specified date in the form of string.Test it Now
Fri, 15 Aug 1947 14:52:10 GMT
JavaTpoint offers too many high quality services. Mail us on [email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected]
Duration: 1 week to 2 week