How to get name of day of week from current (Today) Date in JavaScript.
Example: Monday, Tuesday, etc
Hi makenzi.exc,
use toLocaleString method and pass the weekday as options.
Refer below example.
HTML
<html> <head> <meta charset="utf-8" /> <title></title> <style type="text/css"> body { font-family: Arial; font-size: 10pt; } </style> </head> <body> <input type="button" value="Get Day" onclick="GetDay()" /> <script type="text/javascript"> function GetDay() { //Current Date object. var dt = new Date(); // Get Day. var day = dt.toLocaleString("en-IN", { weekday: "long" }); alert("Day is: " + day); } </script> </body> </html>
Demo
Screenshot
Downloads
Download Sample
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.