Skip to Content
0
Former Member
Feb 21, 2006 at 02:42 PM

Convert Date Object to Calendar object

15 Views

Hi,

I have a Date field in my webdynpro application, I need to to read this from my current context and convert the same to a Calendar field and pass it to my model.

Calendar date = CalendarConverter.parseDate(req_date.toString());

The above code gives me a null pointer exception.

Can anyone suggest me the right way of handling this Date object to Calendar object conversion?

Ashwini.