title: Javascript get date of next tuesday or friday (closest)
body: <p>I need to code a function that returns the date (example: 2014/08/28) of next tuesday or next friday, whichever is the closest day. But there is a little quibble: if today's day is tuesday or friday, if it is before 22:00 it should return todays date, on the other hand if it's after 22:00 or equal to 22:00 it should return next tuesday's or friday's date, whichever it's the next one.</p>
  
  <p>I've no clue on how to start coding this.</p>
  
  <p>Regards,</p>