Depending on today's date (new date ()) I would like to get the date of next Thursday at 7pm in javascript. For instance:
If today's date is "Mon Apr 24 2017 13:00:00 GMT" I am looking for the result:
Thu Apr 27 2017 19:00:00 GMT
However, if today is the date "Thu Apr 27 2017 21:00:00 GMT" (Thursday, but in 7 hours), I am looking for the result:
Thu May 4 2017 19:00:00 GMT
Any help would be greatly appreciated!
source
share