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
MohanRaj C
NA
43
127.4k
Login and logout time calculation
Apr 24 2012 1:28 AM
DateTime StartTime = DateTime.Now.ToLocalTime();
DateTime EndTime = DateTime.Now.ToLocalTime();
string dt = EndTime.Subtract(StartTime).ToString().Split('.')[0].ToString();
button1.Text = dt;
starttime = session["logintime"].tostring();
endtime=currenttime...
i have error in retriving the starttime values(ie,session)
if i run this code...it displays the starttime value like 12:00:00
i need this type of output
StartTime
:8/7/2010 3:31:16 PM
EndTime:
8/7/2010 3:32:00PM
OutPut:
dt
=00:00:44
Reply
Answers (
3
)
master page
How to display current time only not current date