2.3 Chinese Simplified date format error

  1. #1

    2.3 Chinese Simplified date format error

    Please see below picture

    Click image for larger version. 

Name:	QQ截图20131014163206.png 
Views:	14 
Size:	8.8 KB 
ID:	7038

    Chinese Simplified date string shoud be 2015年6月8日. Now there are some extra single quote char 2015'年'6'月'8'日'

    You can test it here https://examples2.ext.net/#/Miscellaneous/Locale/Basic/
    Last edited by devil; Oct 14, 2013 at 8:41 AM. Reason: add test url
  2. #2
    Hello!

    We are investigating. Thank you!
  3. #3
    Hi everybody,

    It appears that it is a default LongDatePattern for the zh-CN locale in .NET.

    If you run
    System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("zh-CN");
    X.Msg.Alert("", ci.DateTimeFormat.LongDatePattern).Show();
    you will see this in a message box
    yyyy'年'M'月'd'日'
    This is used as a default value for a DatePicker's LongDayFormat which, in turn, is used for those tips.

    You can set up it explicitly if needed.
    <ext:DatePicker runat="server" LongDayFormat="yyyy年M月d日" />
    Last edited by Daniil; Oct 23, 2013 at 4:28 AM.

Similar Threads

  1. Replies: 3
    Last Post: May 21, 2013, 4:28 AM
  2. Replies: 8
    Last Post: May 20, 2013, 4:01 AM
  3. Replies: 1
    Last Post: Apr 13, 2012, 1:52 PM
  4. [CLOSED] Error in the Ext.util.Format.date
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Sep 16, 2011, 11:42 AM
  5. [CLOSED] Grid AddRecord Date Format Error
    By CMA in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 28, 2010, 11:32 AM

Tags for this Thread

Posting Permissions