How to get a year first date and last date in javascript -


need first date , last date time of year passing year number. it's below.

var year = 2016 //any year var first_date = ? //from year var last_date = ? //from year 

var year = 2016 //any year  var first_date = new date(year, 0, 1);  var last_date = new date(year, 11, 31);    document.write(first_date);  document.write("<br/>");  document.write(last_date);


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo