JavaScript toGMTString

The JavaScript toGMTString function converts the date and time into a string object using GMT. The basic syntax for this toGMTString Date Function is: Date.toGMTString() toGMTString Example We are using the toGMTString function to convert today’s date and time to a string object. <!DOCTYPE html> <html> <head> <title> JS </title> </head> <body> <h1> Example </h1> … Read more