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

Recommended Answers

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 …

Jump to Post

All 2 Replies

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.