c# datatable select statement with dates

后端 未结 5 1377
难免孤独
难免孤独 2021-01-12 06:16

i am trying to make a select statement on a datatable to get the row that is within the date range i am looking for. I am new to this an i dont quite understand how this sel

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-12 06:40

    expression = "Date > #2015-1-1#"; DataRow[] foundRows = table.Select(expression); 与 select * from tablename where Date>'2015-1-1'

提交回复
热议问题