If you have a DateTime, use its string formatters:
string month = DateTime.Now.ToString("MM"); // or "dd" for day
Or if it makes more sense to work with a number that you have, use the numeric formatters:
string monthStr = monthInt.ToString("00");