JavaScript toDateString

The JavaScript toDateString function returns the Date portion of a given date in a human-readable format. The syntax of the toDateString function is: Date.toDateString() JavaScript toDateString Example We use the toDateString function to return the data portion of today’s date. <!DOCTYPE html> <html> <head> <title> JS </title> </head> <body> <h1> Example </h1> <script> var dt = … Read more