How to convert Date(ActionScript 3) to java.util.Date through a xml?
I want to convert Date(ActionScript 3) to java.util.Date through a xml. First, write a user defined ActionScript class like this. public class User { public function User() { userDate = new Date(); } public var id:String = null; public var password:String = null; public var userDate:Date = null; } Second, create its instance and set each of values, so it converts ActionScript class to a xml for using XMLEncoder having its schema file. This is the result xml, and send this xml to a server for using a HTTPService. <User> <id>system</id> <password>manager</password> <userDate>Fri Jan 14 09:02:17