Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to remove/truncate Z and time values from Calender date.

user12679330May 4 2011 — edited May 5 2011
Hi,
I observe that in the Java Calender date when mapping from one calender date eleemnt to another calender date element I am getting calender date appending z or time at the end of the date value. I want to know how to truncate/remove the Z and time from calender date:

EX:

<NewArrival date="2011-05+01:00">
<NewArrival date = date="2011-01Z">

These red coloured needs to be removed from calender date.

Please explain how to do that to remove them from calender date.

Please give the reply soon, its urgent.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 2 2011
Added on May 4 2011
11 comments
1,409 views