[CLOSED] datetime format issue?

  1. #1

    [CLOSED] datetime format issue?

    how to format CollectDate in db which value is 2014/5/11 23:13:12
        <ext:ModelField Name="CollectDate" Type="Date"></ext:ModelField>
      <ext:Column ID="Column2" runat="server" DataIndex="CollectDate" Text="操作时间"></ext:Column>
    but it shows :
    Sun May 11 2014 23:13:12 GMT+0800 (中国标准时间)

    i want show yyyy-MM-dd format
    Last edited by Daniil; May 12, 2014 at 7:18 AM. Reason: [CLOSED]
  2. #2
    Hi,

    How about using an <ext:DateColumn>?

    You can also control the formatting in the DateColumn using the .Format property.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    Hi,

    How about using an <ext:DateColumn>?

    You can also control the formatting in the DateColumn using the .Format property.

    Hope this helps.
    thank you ,
    just use
     <ext:DateColumn ID="Column2" runat="server" DataIndex="CollectDate" Text="操作时间" Format="yyyy-MM-dd"></ext:DateColumn>

Similar Threads

  1. Ext.Net.DateColumn Format issue
    By lmueller in forum 1.x Help
    Replies: 4
    Last Post: Sep 17, 2018, 4:05 AM
  2. [CLOSED] String.format vs. Ext.util.Format.format
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 15, 2013, 5:26 PM
  3. AutoSave Datatime
    By PetrSnobelt in forum 2.x Help
    Replies: 0
    Last Post: Sep 24, 2012, 1:30 PM
  4. Date Format issue in editable grid
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 2
    Last Post: Sep 26, 2009, 3:07 PM
  5. Interesting comment by Microsoft on String.Format Issue
    By pkellner in forum Open Discussions
    Replies: 1
    Last Post: Dec 11, 2008, 1:59 PM

Posting Permissions