View Single Post
  #4 (permalink)  
Old June 19th, 2007, 06:52 AM
banoo banoo is offline
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

string stime,etime;
            stime = t1.Text.Substring(0,2)+":"+t1.Text.Substring(2,2)+ ":"+"00";
            etime = t2.Text.Substring(0,2)+":"+t2.Text.Substring(2,2)+ ":"+"00";

            t3.Text = Convert.ToDateTime("01/01/1900 " + stime + "AM").ToString();
            t4.Text = Convert.ToDateTime("01/01/1900 " + stime + "AM").ToString();

Try this.... Working
Reply With Quote