Skip to Content
0
Former Member
Jul 05, 2011 at 08:08 AM

Please let me know how can convert date from string date to date ?

22 Views

Hi,

please any body do help to resolve my this problem if I am using this below mention code then it is working fine it is printing the correct system date format whatever I needed no problem and date is coming string type til here

but the problem is that I want to pass this date in RFC that RFC type is date so

I want to convert this date from String date to Date type for passing in RFC.

So please help to resolve this problem.

DateFormat formatter;

formatter = new SimpleDateFormat("dd.MM.yyyy");

Calendar cal = Calendar.getInstance();

cal.add(Calendar.DAY_OF_MONTH,+3);

java.sql.Date systemDate = new Date(cal.getTimeInMillis());

String dat =formatter.format(systemDate);

wdComponentAPI.getMessageManager().reportSuccess("Current System Date....." + dat );