TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhilash J A
530
2.4k
598k
How to calculate difference between 2 TimeSpan ?
Sep 20 2016 2:37 AM
Hello Everyone,
In my MVC4 project, I want to calculate the difference of employee's checkIn and checkOut time. But the '
workedTime
' shows
munus
sign. How can I remove when page showing in browser?
TimeSpan d1 = new TimeSpan(00,00,00);
d1 ="08:14:55";
TimeSpan day = new TimeSpan(08, 30, 00);
TimeSpan workedTime = new TimeSpan(00, 00, 00);
workedTime = d1.Subtract(day);
Reply
Answers (
9
)
Excel plugin asking for visual studio
How to entry a certain digits in a certain textboxs c#