Dears,
how to calculate work experience with TimeSpan or otherwise how to calculate work experience if all months of the year have 31 days?

Your question is a little vague on details, but you could initialize a new TimeSpan:

TimeSpan span = new TimeSpan();

Then iterate through your list of hours and add them as a new TimeSpan:

span += new TimeSpan(hours, minutes, seconds);

I don't understand what to are trying to get at with "if all months of the year have 31 days?". Could you elaborate? Or post some code?

A calendar is a wonderfull thing. With months of 31 days we soon have New Yearsday in the middle of summer! 12*31 being 372.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.