I had value in variable 1 as 01:00 and in variable 2 as 12:00. I want to add both variable and make it
13:00
How i can do this.
Are they time or numbers only…because they look like time
If so you can add like this DateTime.ParseExact("13:00","HH:mm",System.Globalization.CultureInfo.InvariantCulture).AddTicks(DateTime.ParseExact("01:00","HH:mm",System.Globalization.CultureInfo.InvariantCulture).Ticks).ToString("HH:mm")
cheers
cheers
Please check the starttime value…and also make sure there are no spaces before or after the starttime
I see add time looks proper
cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.