select * from table where createddate = YEAR (@YourDate)
@year
string Year = ddlYear.SelectedItem.Text; DateTime Fdate = Convert.ToDateTime(Year + "-" + 01 + "-" + 01); DateTime Tdate = Convert.ToDateTime(Year + "-" + 12 + "-" + 12);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)