我需要使用参考http://linqjs.codeplex.com/过滤 datepicker 选择的开始日期和结束日期之间的结果如何根据我的日历输入进行过滤。
开始日期 : $('#startdate').val() // MM/DD/YYYY 格式
结束日期 : $('#enddate').val() // MM/DD/YYYY 格式
var queryResult = $.Enumerable.From(jsonResultTble)
.Where("??")
.ToArray();
样本数据:
var jsonResultTble = [{"ItemId":3,"Condition":"Very Good","Seller":"amazon@hotmail.com","Rating":0,"School":"University of California-Los Angeles","City":" ","State":" ","Comments":"N/A","RetailPrice":0,"ManufactureDate":"4/10/2012 12:00:00 AM","ExpiryDate":"4/10/2014 12:00:00 AM"},{"ItemId":4,"Condition":"Very Good","Seller":"g@esoulconsultancy.com","Rating":18,"School":"Mississippi Valley State University","City":" ","State":" ","Comments":"N/A","RetailPrice":0,"ManufactureDate":"1/10/2010 12:00:00 AM","ExpiryDate":"4/10/2016 12:00:00 AM"];