I have a situation in which I want to get the hour component of a DateTime,
but I want the 12-hour value that would go with an AM/PM. The only way I
could find to do this was to use a date format string. Since h is the format
character used for this, I figured I would use the method:
However, this would give me an error. But when I used it with a space and
It would work fine. Why am I not allowed to use "h" as a format string?
View Complete Post