[CLOSED] Date Format on Group View

  1. #1

    [CLOSED] Date Format on Group View

    Hii,

    I have a grouping view as follow

      
    <ColumnModelID="ColumnModel2"runat="server">
    <Columns>
    <ext:ColumnDataIndex="ID"Header="ID"Hidden="true"Width="100"/>
    
    <ext:DateColumnDataIndex="STARTDATE"Header="START"Width="150"Format="dd/MM/yyyy"Hidden="true"/>
    </Columns>
    </ColumnModel>
    
    <View>
    <ext:GroupingView runat="server" GroupTextTpl="START :  {[values.rs[0].data.STARTDATE]} 
    " HideGroupedColumn="true" EnableGrouping="true"></ext:GroupingView>
    </View>
    The text tpl shown was START : Tue Dec 6 00:00:00 UTC+0700 2005 but i want to show a grouping text tpl in a specific date format, for example "START : 01/09/2010". My question is how to format a date in text tpl?

    Thx
    Last edited by Daniil; Dec 13, 2010 at 12:35 PM. Reason: [CLOSED]
  2. #2
    Hi,

    The following should work.

    Example
    GroupTextTpl="START :  {[Ext.util.Format.date(values.rs[0].data.STARTDATE, 'Y/m/d')]} "
  3. #3
    thanks, it works great..

Similar Threads

  1. Replies: 3
    Last Post: May 09, 2012, 4:28 PM
  2. Replies: 2
    Last Post: Jan 10, 2012, 6:35 AM
  3. Replies: 4
    Last Post: Jun 30, 2011, 3:30 PM
  4. Format Date in Group Summary
    By brucelee15987 in forum 1.x Help
    Replies: 0
    Last Post: Jun 08, 2011, 3:05 PM
  5. Replies: 1
    Last Post: Feb 15, 2011, 5:45 PM

Posting Permissions