1 person found this helpful
you can but not as a date object. you have to serialize your date object, save that to your xml and then unserialize your date object.
that may be less efficient than using a string to save to your xml and converting that back to ta date object.
Okay a follow up question.
If I store the number of milliseconds of the date using date.getValueOf(), is there an easy way to change those milliseconds back to a date object?
Never mind found it myself: date.setTime()
yes, or more directly use:
var newDate:Date = new Date(ms);
Thanks. Strange that they seem to do the same thing.