-
26 Nov 2012 11:22 AM #1
Invalid Date
Invalid Date
Hi ,
I have two issues with date fields .
1- how to make a datepicker to show (today- now()) by default , I tried value : new Date() , and the browser get 'newDate' and of course is undefine , even when the design view shows the correct date .
2- the control date , has format j/m/Y , and shows the right format . But after chosing a date with the picker I get in the browser invalid proto , where and what to write the code to fix this . in order to save the model properly .
-
26 Nov 2012 12:01 PM #2
Re: 1 you will want to use an override or an event handler.
Re: 2 I do not understand whats happening. Can you share some screenshots etc?Aaron Conran
@aconran
Sencha Architect Development Team
-
29 Nov 2012 11:27 AM #3
Invalid date
Invalid date
For my first problem :
I enter that :
date3.PNG
I get newDate() in browser and in code view what means that I get an invalid Date
-
29 Nov 2012 11:31 AM #4
where to parse a date field
where to parse a date field
Where should I code , what to do for saving to a model a date field in a correct date format ? the date is comming from a datapicker
-
6 Dec 2012 2:14 PM #5
Work around to default new Date()
Work around to default new Date()
use the evil way
eval('new Date()') instead of new Date()


Reply With Quote