Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List IP And The Time Of Day [tut]
#5
Code:
Label1.Text = Date.Now


There's more optionality with using DateAndTime instead of Date

Some other examples are:
Code:
Label1.Text = DateAndTime.DateString
Code:
Label1.Text = DateAndTime.Today
The difference between these two is just a "-" and the "/" format for the month/day/year format.

Code:
Label1.Text = DateAndTime.TimeOfDay
This will get the specific time of day without the date.

You can also extract exact values or create your own format for the date and time using DateAndTime
Reply


Messages In This Thread
RE: List IP And The Time Of Day [tut] - by H-Q - 06-29-2011, 09:36 AM
RE: List IP And The Time Of Day [tut] - by AceInfinity - 07-03-2011, 03:15 AM
RE: List IP And The Time Of Day [tut] - by H-Q - 07-03-2011, 03:17 AM
RE: List IP And The Time Of Day [tut] - by H-Q - 07-03-2011, 05:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 61,837 10-07-2012, 06:56 AM
Last Post: a99
  [TUT]Auto-Update System[TUT] HB Virus 3 2,425 01-07-2012, 02:21 PM
Last Post: Mastermrz
  [TUT]Enable and Disable TaskManger in vb.net [TUT] HB Virus 4 3,167 12-19-2011, 10:10 AM
Last Post: euverve
  [Vb.net] List and Kill Processes[Tut] Slurms Makenzi 11 3,440 07-21-2011, 11:21 AM
Last Post: AceInfinity
  [TuT] VB6 Message Box Spammer [TuT] HakkuR* 30 7,509 06-06-2011, 04:43 PM
Last Post: Black Demon

Forum Jump:


Users browsing this thread: 2 Guest(s)