This might be a bug.
I want to render a grid row based on whether the expiry date is older then today. To make my life easier, form the server side i'm sending a data in the format YYYYMMDD. There I can simple do a greater or small then procedure.
But I'm come across the following bug.
When I try to format the date using the format function then I get a security violation. When I try to use the Ext.util.Formate.date then nothing happens.
Has anybody had this issue before?
here is how to replicate it.
Create a button and add on-click event:
Thanks in advance if anybody has found a work around.
var a = new Date();
a.clearTime(true); //doesn't work
var b = new Date();
b.format('Ymd'); //causes secdurity violation
var c = new Date();
alert('Date A is: ' + a + ' Date B is:' + a + ' Date C is: + c);