string str = "2007年7月8日";
DateTime dt = Convert.ToDateTime( str );
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");
string res = dt.ToString("m");

解决方案 »

  1.   

    Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");
    楼上这行好强
      

  2.   

    string str = "2007年7月8日";
    DateTime dt = Convert.ToDateTime( str );
    dt=string.Format("{0:R}",dt);
      

  3.   

    顶一下
    Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB");
    这行确实可以实现啊
      

  4.   

    // 使用特定的区域和语言文化
    // 
    string str = "2007年7月8日";                
            string selectedLanguage = "zh-cn";   //                                  
            System.Globalization.CultureInfo cultureInfo = System.Globalization.CultureInfo.CreateSpecificCulture(selectedLanguage);
            DateTime dt = Convert.ToDateTime(str, cultureInfo);
            selectedLanguage = "en-us"; //
            cultureInfo = System.Globalization.CultureInfo.CreateSpecificCulture(selectedLanguage);        
            Console.Write(dt.ToString("m", cultureInfo));
      

  5.   

    不用阿
    你的日期变量ToString("D")就可以了。看一下示例
     using System;
     using System.Globalization; 
     
    public class MainClass { 
        public static void Main(string[] args)  {
            DateTime dt = DateTime.Now;
            String[] format = {
                "d", "D",
                "f", "F",
                "g", "G",
                "m",
                "r",
                "s",
                "t", "T",
                "u", "U",
                "y",
                "dddd, MMMM dd yyyy",
                "ddd, MMM d \"'\"yy",
                "dddd, MMMM dd",
                "M/yy",
                "dd-MM-yy",
            };
            String date;
            for (int i = 0; i < format.Length; i++) {
                date = dt.ToString(format[i], DateTimeFormatInfo.InvariantInfo);
                Console.WriteLine(String.Concat(format[i], " :" , date));
            }
      
       /** Output.
        *
        * d :08/17/2000
        * D :Thursday, August 17, 2000
        * f :Thursday, August 17, 2000 16:32
        * F :Thursday, August 17, 2000 16:32:32
        * g :08/17/2000 16:32
        * G :08/17/2000 16:32:32
        * m :August 17
        * r :Thu, 17 Aug 2000 23:32:32 GMT
        * s :2000-08-17T16:32:32
        * t :16:32
        * T :16:32:32
        * u :2000-08-17 23:32:32Z
        * U :Thursday, August 17, 2000 23:32:32
        * y :August, 2000
        * dddd, MMMM dd yyyy :Thursday, August 17 2000
        * ddd, MMM d "'"yy :Thu, Aug 17 '00
        * dddd, MMMM dd :Thursday, August 17
        * M/yy :8/00
        * dd-MM-yy :17-08-00
        */
        }
    }
      

  6.   

    打算写英文简历的进来,给你一个小工具. The person who plans to write the English resume comes in, give you a small tool..
    翻译效果翻译(小偷)工具:
    www.dullwolf.cn/tanslator.exe下载,需要.Net2.0支持
      

  7.   

    Globalization.CultureInfo("en-GB");
    是最好得
      

  8.   

    web.config <globalization culture="es-un" uiCulture="es-un"/>