PDA

View Full Version : todays date



Plkilroy
7 Jul 2011, 8:25 PM
Hi I wanted to simply add todays date to a toolbar, Ive set up the container with html as date, now I need the JS to make it happen; Many Thanks -P

{ xtype: "container",
width: 280,
dock: 'right',
html: 'date'
},

mmourtada
7 Jul 2011, 8:38 PM
try this not sure it will work
value: new Date(),

Plkilroy
8 Jul 2011, 1:57 AM
thanks! sorry no go. In the docs I see there is Date class. How can I implement var dt to my container html: cheers -P

var dt = new Date(); document.write(dt.format(Date.patterns.ShortDate));

Plkilroy
13 Jul 2011, 9:13 PM
Hi Forum, I still need help with this! Anyone, thanks -P