Grep function in jQuerry on date value in between start and end dates of a month

var filteredNews=$.grep(olistData,function(item,index){
return new Date(monthStartDate)<=new Date(item.Created.split("T")[0])&&new Date( item.Created.split("T")[0])<= new Date(monthEndDate);
});

Comments

Popular posts from this blog

My Interview Experience