Trying to achieve this for the value of a Ext.field.Datepicker:

Code:
{
	year: new Date().getFullYear(),
	month: (new Date().getMonth() + 1),
	day: new Date().getDate()
}
The output code becomes:

Code:
{
	year:newDate().getFullYear(),
	month:(newDate().getMonth()+1),
	day:newDate().getDate()
}
I guess it shouldn't be trimming whitespace as minification of the application will sort that out anyway