Handy Hint 1 Displaying time formats

To display the current time in 12hr format the code will be


[your textbox name].text = TimeOfDay.ToString("hh:mm:ss")

To display the current time in 24hr format the code will be


[your textbox name].text = TimeOfDay.ToString("HH:mm:ss")

'note the 24 hr format use's "HH" and the 12hr format uses lower case letters, this lets vb know it is ment to be 24hr format not 12hr.'