Results 1 to 5 of 5

Thread: DateField- wierd behavior

  1. #1
    Ext User
    Join Date
    May 2007
    Posts
    69

    Default DateField- wierd behavior

    has anyone seen this?...


    when i choose a date in the datefield it enters the date in the txt box such as '200706' (i set the format to be 'Ym'

    when i click outside the box, it defaults to 200707 automatically.

    Here's how i setup the datefield:

    Code:
     new Ext.form.DateField({
                fieldLabel: 'End Date(yyyymm)',
                id:'enddate',
    			name: 'enddate',
                width:80,
                //allowBlank:false,
    			minValue: ((dt).add(Date.DAY,-365)), //only allow user to go 1 year back
    			maxValue: dt,
    			format: 'Ym'
            })
    	 );
    This just started happening to me. Could it have anything to do with the fact its the last day of the month?..could there be a bug in the ext code? I am definately not changing the value in my code.
    Last edited by mystix; 1 Aug 2007 at 6:21 PM. Reason: use [code][/code] tags

  2. #2
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    assuming your variable dt is defined as
    Code:
    var dt = new Date();
    just tried your example with Ext 1.1 and everything is working as expected.

    are you doing any additional date manipulation in your code?

  3. #3
    Ext User
    Join Date
    May 2007
    Posts
    69

    Default

    nope...but it seems to have fixed itself...something about that particular day i tell ya!

  4. #4
    Sencha User mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236

    Default

    fyi, i did change the date on my system clock to 31st July 2007 to test this.

  5. #5
    Ext User
    Join Date
    May 2007
    Posts
    69

    Default


Posting Permissions

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