07-03-2011, 03:15 AM
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
Code:
Label1.Text = DateAndTime.TimeOfDay
You can also extract exact values or create your own format for the date and time using DateAndTime