Hi,
In my appilication everytime when i get total in sundayhrs textbox overtime hrs is also populates in overtimetextbox but it show negative values
example:
sundayhrs 08:00:00
totaltext :08:00:00
overtimetextbox:-32:00:00
i dont want to show negative values for everytime if total >40 then only is hould populate overtime hrs in overtimetextbox.
if (txt_SunServiceHrs.Text.Length > 0)
{
TimeSpan val11;
string sun = txt_SunServiceHrs.Text;
TimeSpan.TryParse(sun, out val11);
TimeSpan breaktime1 = new TimeSpan();
breaktime1 = val11;
TimeSpan standardTime = TimeSpan.FromHours(40);
txt_standard.Text = FormatHours(standardTime);
txt_OverTimeHrs.Text = FormatHours(breaktime1 - standardTime);
...
Go to the complete details ...