How to get the day of the month for the specified date in JavaScript

1 Answer

0 votes
<script type="text/JavaScript">   

var dt = new Date('May 30, 2016 9:30:31');
var day = dt.getDate();

console.log(day); 


/*
run:

30

*/

</script>

 



answered May 30, 2016 by avibootz
...