jquery - how to get a javascript date from a week number? -


how can date of first day of week week number , year, in javascript (or jquery)?

example : week 30 , year 2013

thanks in advance !

var d = new date(year, 0, 1); var days = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];  d.setdate(d.getdate() + (week * 7));  console.log(days[d.getday()]); 

try this


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -