I have a SQL Server table Registration with name and datetime, I want to search the data with datetime which is less then datetime.now.
SqlDataAdapter cs =
new SqlDataAdapter("Select * from Registration where Date > DateTime.now")
I want that datetime is less then today.
SqlCommandwith parameters, she can do it directly in the constructor for theSqlDataAdapter.