• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

vb.net - display current time

hello there,
how can I make a button that can display the current time like (3:26PM) or like (8:50AM) etc..
0
XK8ER
Asked:
XK8ER
  • 2
1 Solution
 
the_b1ackfoxCommented:
put this in a button and make sure you have a label1!


lable1.text=System.DateTime.now
or dateTime.now
0
 
XK8ERAuthor Commented:
both give wrong time

12/17/2009 2:37:10 AM

12/17/2009 2:37:26 AM
0
 
XK8ERAuthor Commented:
should only be

2:37:10 AM
2:37:26 AM
0
 
appariCommented:
try

date.Now().ToLongTimeString
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now