Skip to Content
0
Former Member
Nov 28, 2007 at 01:23 PM

Cannot convert string to date

297 Views

Hi,

I am creating a webdynpro application, with a DatePicker and 2 Input Fields called Start_Date and End_Date.

When i write the code it says "Cannot Convert from String to Date".

/*

Date Start = wdContext.currentDatepickElement().getStart();

SimpleDateFormat df = new SimpleDateFormat("DD/MM/YYYY");

Date End = wdContext.currentDatepickElement().getEnd();

SimpleDateFormat df = new SimpleDateFormat("DD/MM/YYYY");

*/

How can i get the Date which i selected into the two input fields?

Regards,

Divya