I have a string which depicts Time e.g. "11:23". Is there a smart way using some MFC function to validate whether the string represents a valid time. The proposed way should be able to validate the string for hours(0 to 23), minutes(0 to 59) and the time separator as defined in the Control Panel. (The Time separator can be read from the Control Panel using the function GetLocaleInfo).