locked
LinqdataSource Where RRS feed

  • Question

  • hi,

    How can i put a DateTime filter in where clause in the LinqdataSource?


    Thanks;
    Thursday, September 11, 2008 8:01 PM

Answers

  •  classes = classes.Where(cls => Convert.ToDateTime("09/122008 " + cls.START_TIME) >= Convert.ToDateTime("09/12/2008 " + ddlAfter.SelectedValue));
    something like this
    Friday, September 12, 2008 8:11 PM