Results 1 to 2 of 2

Thread: date column format

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    41

    Default Answered: date column format

    Hi
    I add 'Y-m-d' format to my date column editor ( I use row Edit Plugin) but the format is like this
    "2012-06-18T00:00:00"


    How I can remove T00:00:00 I just want simple 2012-06-18



  2. Hi!,

    You can use dateRenderer for your needs.

    sample is below:-

    Code:
    columns: [
        {
            header: 'Date',
            width: 105,
            renderer:Ext.util.Format.dateRenderer('Y-m-d')
            dataIndex: 'dataIndex'
        }
    ]

  3. #2
    Sencha User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124

    Default

    Hi!,

    You can use dateRenderer for your needs.

    sample is below:-

    Code:
    columns: [
        {
            header: 'Date',
            width: 105,
            renderer:Ext.util.Format.dateRenderer('Y-m-d')
            dataIndex: 'dataIndex'
        }
    ]
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •