Selecting rows from DataTable by DateTime column (hours)
        Posted  
        
            by nCdy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by nCdy
        
        
        
        Published on 2010-03-12T10:33:18Z
        Indexed on 
            2010/03/12
            11:07 UTC
        
        
        Read the original article
        Hit count: 254
        
DatarowsForOneDay = dt.Select(
    dt.Columns[0].Caption + "='" + x.ToString("dd/MM/yyyy HH") + "'");
doesn't work, but
DatarowsForOneDay = dt.Select(
    dt.Columns[0].Caption + "='" + x.ToString("dd/MM/yyyy") + "'");
works.
So how can I select the date with a same hour?
Variable x type is DateTime.
© Stack Overflow or respective owner