Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Get Full Month Name from a Date</title> </head> <body> <script> // Creating a date object var today = new Date(); // Getting full month name (e.g. "June") var month = today.toLocaleString('default', { month: 'long' }); document.write(month); </script> </body> </html>