Can anyone help me to convert a date which is given in CCYYMMDD format to MM/DD/开发者_开发技巧CCYY format in C#.
Assuming by "CC" you mean century, you should just parse it and reformat it:
DateTime date = DateTime.ParseExact("yyyyMMdd", text,
CultureInfo.InvariantCulture);
string newText = date.ToString("MM/dd/yyyy", CultureInfo.InvariantCulture);
精彩评论