Use the date format of your choice in the ToString
Txtdateofbirth=sdr.GetValue(2).ToString("dd/MM/yyyy");
Might need to cast it first though
Txtdateofbirth=((DateTime)sdr.GetValue(2)).ToString("dd/MM/yyyy");
This assumes the field is stored as a Date or DateTime field, if it isn't then it should be.