---
title: "find the day name and month name from current date"  
description: "find the day name and month name from current date"  
author: "Somesh"  
published: 2011-10-11  
updated: 2011-10-11  
canonical: https://www.mindstick.com/forum/323/find-the-day-name-and-month-name-from-current-date  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# find the day name and month name from current date

hi,\
How to find the day name and [month name](https://www.mindstick.com/forum/161070/sql-query-to-print-all-the-month-name) from current [date](https://yourviews.mindstick.com/story/3869/propose-day-2024-exciting-date-ideas-for-you-and-your-partner) ?\
\
thanks

## Replies

### Reply by Amit Singh

Hi somesh,\
we find the month [name](https://yourviews.mindstick.com/view/87450/how-to-generate-a-brand-name-using-linkedin-comprehensive-guide) and day from current date by using built in function in javascript. check this example\
\

```
<script type="text/javascript">    var monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December");    var dayNames=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Wednesday","Thursday","Friday","Saturday");    var InputDate=new Date();    var strDays=dayNames[InputDate.getDay()];    var strMonth=monthNames[InputDate.getMonth()];    var strYear=InputDate.getYear()+1900;    alert(strDays+", "+strMonth+", "+strYear);    </script>
```


---

Original Source: https://www.mindstick.com/forum/323/find-the-day-name-and-month-name-from-current-date

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
