title: Ext.Date.format() in Sencha
body: <p>I want to get date format like <strong>2017-04-20 00:00:00</strong></p>
  
  <p>currently my code is</p>
  
  <pre><code>this.ToDatePicker = Ext.create('Ext.form.field.Text', {
          xtype: 'textfield',
          name: 'name',
          labelAlign: 'top',
          fieldLabel: 'Date Time',
          value: Ext.Date.format(new Date(), "d-m-Y h:iA"),
          listeners: {
              scope: this,
              afterrender: function (c) {
                  c.getEl().on('click', function (e) {
                      console.log(e.target)
                      NewCssCal_DisableAfterToday(Ext.get(e.target).dom.id, 'ddmmyyyy', 'dropdown', true, 12)
                  });
              }
          }
      });
  </code></pre>
  
  <p>need to update <code>Ext.Date.format(new Date(), "d-m-Y h:iA")</code>
  to get that date format as I needed. Can you have any idea to do that?</p>