More Dates Madness

Just did some cross browser testing – all works OK in firefox and safari and seamonkey and google chrome, but internet explorer croaks. The customer (not totally unreasonably) objected to dates being displayed as YYYY-MM-DD and wanted them displayed in the UK format of dd/month/yy. Unfortunately somewhere in the dates manipulation I used the Javascript Dates.parse function. this worked OK in Firefox and processed UK dates OK ie Date.parse(“1/Aug/2009”) gave the correct result of 1249081200000,
but in IE I got NaN.

Try it yourself in different browsers by putting UK style dates at www.w3schools.com/jsref/jsref_parse.asp

Tags: , , , , , , , , , , , , , , ,

Leave a Reply