Have a form, need to pass three days from the current date. I wrote the following code which does not work
var fb_form_end_date = {
xtype : 'hidden',
name : 'PLAN_DATE_END',
value : ((new Date()).getData()+3).format('d-m-Y')
}
I know that it is possible to use this solution:
var today = new Date();
var tomorrow = new Date();
tomorrow.setDate(today.getDate()+3);
var fb_form_end_date = {
xtype : 'hidden',
name : 'PLAN_DATE_END',
value : tomorrow
}
but is it possible to do everything on a single line without any extra definitions?
using extjs 3.4