Code:
DateTime dt = DateTime.ParseExact("530", "Hmm", CultureInfo.CurrentCulture);
I can't figure out why this throws a FormatException: String was not recognized as a valid datetime. "0530" works, but "530" will not work eventhough "H" represents "0-24" with no leading zero. Any ideas? Thanks.