2007-11-29

vb.net time format string.

CodesOutput
Format(Now, "h")System.FormatException was unhandled
Input string was not in a correct format.
FormatDateTime(Now, DateFormat.ShortTime)19:36 (in 24 hour)
DateTime.Now.ToString("h")
or
Now.ToString(" h")
7 (in 12 hour)
Now.Hour.ToString(" h")h (not appear figure in hour)

No comments:

Google Referrals