View Full Version : DateField modification
Asaad
19 Jun 2009, 7:28 AM
Hello,
I'm using dateField for my date rows, when I put date as 44.44.2009, I'm waiting to see the field highlighted as an error, but in the next event the date is calculated and converted to 13.09.2012, Is there a function to modify to fix this behavior and stop the conversion operation in datefield ?
thanks
Asaad
mystix
19 Jun 2009, 7:29 AM
Ext 2.2.1 or Ext 3.0-rc2?
mystix
19 Jun 2009, 7:32 AM
if you're on 2.2.1, you'll need the entire override from this post:
302310
if you're on 3.0-rc, you'll only need the DateField override from that post.
Asaad
19 Jun 2009, 7:35 AM
thaks for your reply,
I'm on 2.2.1
mystix
19 Jun 2009, 7:38 AM
note: the DatePicker override is optional -- i'd recommend it if you're in a timezone which experiences DST.
mystix
19 Jun 2009, 7:51 AM
oh wait, my mistake. you'll need the Date.js file from ext-3.0-rc2 too.
i don't think the official 2.2.1 release has all the enhancements required for strict Date parsing. either wait for the next 2.x release, or upgrade to 3.0-rc2.
Asaad
19 Jun 2009, 7:59 AM
the DatePicker override seems not working, I want just to deactivate this function ! (:|
mystix
19 Jun 2009, 8:02 AM
huh?
2.2.1 or 3.0?
mystix
19 Jun 2009, 8:05 AM
i specifically tested it for 2.x SVN.
like i said, 2.2.1 is missing some Date class enhancements required for strict date parsing.
if you need strict Date parsing, you can either wait for the next release of 2.x, or upgrade to 3.0.
Asaad
19 Jun 2009, 8:05 AM
I can't upgrade for the moment, but if changing Date.js from 3. may cause bugs, I prefer waiting for the next release !
mystix
19 Jun 2009, 8:07 AM
I can't upgrade for the moment, but if changing Date.js from 3. may cause bugs, I prefer waiting for the next release !
Date.js from 3 is exactly the same as Date.js from 2 (except for some regexes which are functionally equivalent i.e. /someRegex/ vs new Regex('someRegex')).
mystix
19 Jun 2009, 8:09 AM
i meant "Date.js from 3.0rc2 is exactly the same as Date.js from 2.x SVN".
p.s. pardon the multiple posts -- there seems to be something wrong with the forum 'cos i can't edit any of my posts.
Asaad
19 Jun 2009, 8:10 AM
OK, I'll try this solution, Thanks a lot for your help :)
Asaad
19 Jun 2009, 8:17 AM
>>> c'est pas grave , I have a problem to submit my posts too
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.