[CLOSED] Error in the Ext.util.Format.date

  1. #1

    [CLOSED] Error in the Ext.util.Format.date

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Ext.NET Examples</title>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        
        <ext:DateField ID="DateField1" runat="server">
            <Listeners>
                <Select Handler="#{TextField1}.setValue(Ext.util.Format.date(this.value, 'dd-MM-yyyy'));" />
            </Listeners>
        </ext:DateField>
        <ext:TextField ID="TextField1" runat="server" />
        
        </form>
    </body>
    </html>
    Last edited by Daniil; Sep 16, 2011 at 2:13 PM. Reason: [CLOSED]
  2. #2
    You use invalid date specifiers
    Please see the list of possible date specifiers
    http://dev.sencha.com/deploy/ext-3.4.0/docs/?class=Date
  3. #3
    Quote Originally Posted by Vladimir View Post
    You use invalid date specifiers
    Please see the list of possible date specifiers
    http://dev.sencha.com/deploy/ext-3.4.0/docs/?class=Date
    Why this is works????
        <ext:GridPanel runat="server">
            <ColumnModel>
                <Columns>
                    <ext:DateColumn Format="dd-MM-yyyy" />
                </Columns>
            </ColumnModel>
        </ext:GridPanel>
  4. #4
    For server side properties we use .NET date format specifiers (and automatically converts it to ExtJS format during javascript generation)
    If you use ExtJS javascript then you have to use ExtJS specifiers
  5. #5
    Quote Originally Posted by Vladimir View Post
    For server side properties we use .NET date format specifiers (and automatically converts it to ExtJS format during javascript generation)
    If you use ExtJS javascript then you have to use ExtJS specifiers
    Ok.. Should do the converter of formats..
  6. #6
    On the server side you can use
    Ext.Net.DateTimeUtils.ConvertNetToPHP("dd-MM-yyyy");
  7. #7
    Quote Originally Posted by Vladimir View Post
    On the server side you can use
    Ext.Net.DateTimeUtils.ConvertNetToPHP("dd-MM-yyyy");
    ok.. thanks

Similar Threads

  1. [CLOSED] Ext.util.Format.brMoney
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 27, 2012, 5:09 PM
  2. Replies: 1
    Last Post: Nov 29, 2011, 5:11 PM
  3. util formats for Ext.util.Format.fileSize
    By fatihunal in forum 1.x Help
    Replies: 2
    Last Post: May 21, 2011, 12:47 PM
  4. [CLOSED] Dynamic Created HtmlEditor With Ext.util.Format.htmlEncode
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 12, 2011, 12:59 PM
  5. Ext.util.Format.brMoney()
    By joao.msdn in forum 1.x Help
    Replies: 0
    Last Post: Dec 30, 2010, 12:40 PM

Tags for this Thread

Posting Permissions