public DataTable selectAllNam(string nameTB, string ngay) { SqlConnection Conn = dBConnect.Connection(); SqlDataAdapter da = new SqlDataAdapter("SELECT distinct Year(" + ngay + ") as Nam FROM " + nameTB, Conn); DataTable dt = new DataTable(); da.Fill(dt); return(dt); }