title: How to get the day from a particular date using JavaScript
body: <p>I am new to JavaScript. My requirement is that T want to pop up a message on particular days (like Sunday, Monday...) all through when a date is selected.</p>
  
  <p>I tried <code>getday()</code> function but it didn't work.
  Please suggest how to do this.</p>