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
prasanna kumar
NA
12
26.8k
To find Time Difference using C#
Jul 11 2007 4:25 PM
Hello,
I was looking for C# objects and properties to find the time difference between two dates in hh:mm format.
date1 = " 12/21/2007 10:20 pm "
date2 = " 12/22/2007 10:35 pm"
My result should be time difference between date2 and date1 which would be in the format of 24:15(hh:mm)
I used Timespan and DateTime classes but they return either the total hours or total minutes. But, not the time difference in hh:mm format.
Any help will be appreciated.
Thanks,
Prasanna.
Reply
Answers (
4
)
DatagridView like Outlook please help...
hide source code