top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to add two times in C#?

+1 vote
311 views
How to add two times in C#?
posted Dec 31, 2015 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer
DateTime dt1=new DateTime(TextBox1.Text.Trim());
DateTime dt2=new DateTime(TextBox2.Text.Trim());
DateTime dt3=dt2.Add(dt1);
answer Dec 31, 2015 by Shivaranjini
...