Example:Friday 15Sep2017 19:39 :
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
var d = new Date(giventime);
s = giventime.split(/[ ,]+/)[0] # to get only "day"
(s.toLowerCase() == days[d.getDay()].toLowerCase()) #condition