PDA

View Full Version : how to load Nested Data into a grid panel



evilight
10 Jan 2012, 12:45 AM
Hi all,

it's me again. :-?

in php or shell or unix c api, I can use code like
$sdate = date("Y-m-d",strtotime("today -30days"));
just tell them I want date "today -30days" ago to get the right answer.

how can I get this done in extJs4?

I only see following parameter to new a Date. and

new Date("December 19, 1989 03:24:00");any existing api to do above work or I have to do it all by myself?

Thank you in advance

evilight
10 Jan 2012, 12:47 AM
Holysh.. why subject changed to my old post...
I have to create a new thread and abandon this one..

evilight
10 Jan 2012, 1:14 AM
var def_edate = new Date();
var tmp_date = new Date();
tmp_date.setDate(tmp_date.getDate()-30);
var def_sdate = tmp_date;