I have having weird situation with java Calendar, its driving me crazy.
My requirenment is that i got a xml schema element that accepts only Calendar Type
Say element <expDtTime>2011-09-25T13:00:00</expDtTime>
Say Singapore time zone
When i send the element from client to server my cal obj works perfectly ok
Calendar cal = getElement(expDtTime);
Once it reaches server i do timezone changes to GMT do calculations and then return the obj back to client to display time in Singapore timezone
Here is the issue
my Calendar Obj is passing me
Which is not the required format. I want to get rid of the trailing .000Z
I should get back
Is there any way to get rid of this pls help.
I have tried using date formatter and assigning back to cal obj but as soon as i assign back to calendar obj it changes back to .000Z I dont want timezone part of it.
Any suggestions or help would be much appreciated.
Thanks in advance