How to get the current date in JavaScript and format it?
Hello everyone! I just started learning JavaScript and came across a seemingly simple task. I need to display today's date on a web page (in an online store), for example: "Today: March 15, 2025". I looked into the documentation and found the `Date` object. But when I write simple code:
```javascript
let today = new Date();
console.log(today);
```
...the console outputs something like: "Sat Mar 15 2025 12:34:56 GMT+0300 (Moscow Standard Time)". This is not the format I need at all! How do I get just the day, month in words, and year? I tried parsing the string with `.split()` or using `.getMonth()`, but the month returns a number from 0 to 11, not a name. I also heard about the moment.js library, but I don't want to include a whole library just for one date. Can you advise