thanks

解决方案 »

  1.   

    System.Globalization.DateTimeFormatInfo myDTFI = new System.Globalization.CultureInfo( "zh-cn", false ).DateTimeFormat;//en-USResponse.Write(DateTime.Now.ToString("D", myDTFI));/*
    This code produces the following output.FORMAT  en-US EXAMPLE
    CHAR    VALUE OF ASSOCIATED PROPERTY, IF ANYd     1/3/2002
    M/d/yyyy (ShortDatePattern)D     Thursday, January 03, 2002
    dddd, MMMM dd, yyyy (LongDatePattern)f     Thursday, January 03, 2002 12:00 AMF     Thursday, January 03, 2002 12:00:00 AM
    dddd, MMMM dd, yyyy h:mm:ss tt (FullDateTimePattern)g     1/3/2002 12:00 AMG     1/3/2002 12:00:00 AMm     January 03
    MMMM dd (MonthDayPattern)M     January 03
    MMMM dd (MonthDayPattern)r     Thu, 03 Jan 2002 00:00:00 GMT
    ddd, dd MMM yyyy HH':'mm':'ss 'GMT' (RFC1123Pattern)R     Thu, 03 Jan 2002 00:00:00 GMT
    ddd, dd MMM yyyy HH':'mm':'ss 'GMT' (RFC1123Pattern)s     2002-01-03T00:00:00
    yyyy'-'MM'-'dd'T'HH':'mm':'ss (SortableDateTimePattern)t     12:00 AM
    h:mm tt (ShortTimePattern)T     12:00:00 AM
    h:mm:ss tt (LongTimePattern)u     2002-01-03 00:00:00Z
    yyyy'-'MM'-'dd HH':'mm':'ss'Z' (UniversalSortableDateTimePattern)U     Thursday, January 03, 2002 8:00:00 AMy     January, 2002
    MMMM, yyyy (YearMonthPattern)Y     January, 2002
    MMMM, yyyy (YearMonthPattern)*/
      

  2.   

    这个我以前用的自己写的方法来实现的
    Date.Year.Totring() + "年" + Date.Mouth.Tostring() + "月" + Date.Day.ToString() + "日" ;