How to add Date and Time in Visual Basic
Posted: Wed Sep 02, 2009 4:01 am
Hi everyone its me Robby1998 again and in this topic i will show u how to add time and date in your application
Needed Items for time:
Timer
Label
this is the code for the time, put this code on timer_tick event after enabling the timer!
Needed Items for date:
Timer
Label
this is the code for the date, put this code also in the timer_tick event after enabling it
ty and regards,
Robby1998
Needed Items for time:
Timer
Label
this is the code for the time, put this code on timer_tick event after enabling the timer!
Code: Select all
label1.text = timeofday
Needed Items for date:
Timer
Label
this is the code for the date, put this code also in the timer_tick event after enabling it
Code: Select all
label1.text=System.DateTime.Today.ToLongDateString
ty and regards,
Robby1998