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
leathu raj
NA
62
79.8k
how to calculate time difference in c#
Jun 25 2014 1:00 AM
hi,
I am doing one attendance project using RFID Card. I am using c# windows application. Now I want to know how to calculate time difference between yesterday's time and today's time.
I want to get yesterday's time(time) from database and get today's time from system time(currenttime).
I use this coding,
double duration = (currenttime).Subtract(time).TotalSeconds;
This coding calculate total difference in seconds with negative value...
Please help...
thanks in advance.....
Reply
Answers (
5
)
How to load an API method with ordinal number?
progressbar in windows application