Results 1 to 2 of 2

Thread: datefield in format "m.Y"

  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    77
    Answers
    1

    Default datefield in format "m.Y"

    Hi Ext Team!

    1. I have a datefield in my project:
    Code:
    xtype: "datefield",
    name: "order_expectedDate",
    fieldLabel: "Budget date",
    width: 255,
    format: (order_type != 5 && order_type != 7) ? "d.m.Y" : "m.Y",
    submitFormat: "Y-m-d",
    hidden: (order_type != 1 && order_type != 2) ? false : true,
    disabled: (order_type != 1 && order_type != 2) ? false : true,
    minValue: new Date(),
    startDay: 1,
    readOnly: false,
    allowBlank: false
    2. User fill this datefield - for example 15.11.2012 (datefield display "11.2012")
    3. After lost focus, datefield is automatically changed to 12.2012

    What could be wrong?

  2. #2
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Answers
    20

    Default

    Looking at your code the date should change to m.Y when it loses focus. It's hard to tell from your post, is that what you are seeing and you don't understand why or is it failing to change the format?

Posting Permissions

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