Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
print time and date on button click
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
reddysankar
New Member
Join Date:
Sep 2007
Posts:
2
#1
print time and date on button click
Sep 27 '07, 08:00 AM
Hello everyone,
Is there any statement or code in c# using which i can print the current system time and date on button click.
dip_developer
Recognized Expert
Contributor
Join Date:
Aug 2006
Posts:
648
#2
Sep 27 '07, 08:57 AM
Originally posted by
reddysankar
Hello everyone,
Is there any statement or code in c# using which i can print the current system time and date on button click.
Date.Now()
will give you current Date and Time in the following format....
9/27/2007 2.29.10 PM
Comment
Post
Cancel
navneetkaur
New Member
Join Date:
Sep 2007
Posts:
45
#3
Sep 27 '07, 09:27 AM
Originally posted by
reddysankar
Hello everyone,
Is there any statement or code in c# using which i can print the current system time and date on button click.
hi
jst write like in button click
DateTime curdate;
curdate = DateTime.Today. Date.ToShortDat eString();
crtime = DateTime.Today. Time.Tostring() ;
it vl display 2dy date
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment