Posted on: 4/5/2011 11:26:04 AM | Views : 457

Hi All,
I have string s = "1Y3M2D"
i want to display like this 1Year3Month2Day with below code i can do it.
  static void Main(string[] args)
        {
            string strsource = "1Y3M2D";
            string strdes=null;
          
            if(strsource.Contains("Y"))
            {
                strdes=strsource.Replace("Y", "Year");
            }
            if (strsource.Contains("M"))
    & ...

Go to the complete details ...