I have to set the date in UTC to the xml beans which in turn to be sent to other platform through webservices. I am using
objCal = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
for the objCal i am setting my date
objCal .setTime(objDocHeaderBean.getCreationDate());
if i print the date i am getting the date in required format ie
Wed Jul 01 12:39:25 GMT 2009 but after setting it to xmlbeans the format is not same i am getting
2009-07-01T00:00:00.000+00:00. But iwant my previous format to be sent. I tried a lot . Can anyone help on this???