Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript next friday

  var dayOfWeek = 5;//friday
  var date = new Date(2013, 10, 13);
  date.setDate(date.getDate() + (dayOfWeek + 7 - date.getDay()) % 7);
 
PREVIOUS NEXT
Tagged: #javascript #friday
ADD COMMENT
Topic
Name
7+6 =