function fileQueuedEventHandler(file) {
try {
var creationDate= file.creationdate;
alert(creationDate);
} catch (ex) {
this.debug(ex);
}
}
======================
I ran this javascript code, and could not get the creationDate to display correctly. The alert pops a windows displaying "[Object object]".
Is there a bug in the creationdate property of the File object?
I tried with file.modificationdate, but also get the same problem.
how do i get the date to display correctly?
Date Object
I'm shooting from the hip here but I think you are getting a Date object. Try alerting with the toString method [ alert(file.creationdate.toString()) ] or use something like Firebug to example the object and see what members it has.
Also, it's not documented but I seem to recall that during early testing in pre v1.0 SWFupload showed that creationdate and modificationdate are only available on Mac platforms. But things may have changed in the Flash Player since then.