If it is 2:00 PM I want to return the hour as a single digit. I'm in VB.net in visual studio 2010. I can not get the hour to return a single digit '2'.
Error "Input string was not in the correct format"
Now.ToString("h")
Error "Input string was not in the correct format"
Now.ToString("H")
Retruns 02
'Now.ToString("hh")
Returns 14
Now.ToString("HH")
Anybody know how to do this?
Greg
Error "Input string was not in the correct format"
Now.ToString("h")
Error "Input string was not in the correct format"
Now.ToString("H")
Retruns 02
'Now.ToString("hh")
Returns 14
Now.ToString("HH")
Anybody know how to do this?
Greg