Date.js 253 B

12345678910111213
  1. Ext.define('uas.override.form.field.Date', {
  2. override: 'Ext.form.field.Date',
  3. format: 'Y-m-d',
  4. setValue: function (v) {
  5. if (v && Ext.isString(v)) {
  6. v = new Date(v);
  7. }
  8. this.callParent([v]);
  9. }
  10. });