hi
i am using C# and sql 2005
i want to learn why this code doesnt work. please help me.
DateTime tarih1 =Convert.ToDateTime(dateTimePicker1.Value.ToString("dd.MM.yyyy"));
DateTime tarih2 = Convert.ToDateTime(dateTimePicker2.Value.ToString("dd.MM.yyyy"));
conn.Open();
try
{
string sorgu = "select mno,tarih,gnedeni,teshis,tedavi,doktor from tbmuayene where tarih between '"+ tarih1+ "' and '" +tarih2+ "' "
i am using C# and sql 2005
i want to learn why this code doesnt work. please help me.
DateTime tarih1 =Convert.ToDateTime(dateTimePicker1.Value.ToString("dd.MM.yyyy"));
DateTime tarih2 = Convert.ToDateTime(dateTimePicker2.Value.ToString("dd.MM.yyyy"));
conn.Open();
try
{
string sorgu = "select mno,tarih,gnedeni,teshis,tedavi,doktor from tbmuayene where tarih between '"+ tarih1+ "' and '" +tarih2+ "' "