I think a regular expression to extract both parts would do the trick here :
Regex regex = new Regex(@"^(?<LeftPart>[\d]?)/(?<RightPart>[\d]?)$", RegexOptions.Compiled | RegexOptions.IgnoreCase);
Match m = regex.Match(yourString);
if (m.Success)
{
string left = m.Groups["LeftPart"].Value;
string right = m.Groups["RightPart"].Value;
while (left.Length < 4)
left.Insert(0, "0");
while (right.Length < 2)
right.Insert(0, "0");
}
else
{
}
Hope this helps.
Regards.