Skip to Content
0
Former Member
Apr 07, 2010 at 07:18 AM

Dateformat Error

30 Views

Hi Friends,

In Portal calender side that Date format show like (mm/dd/yyyy) like that i need display the date format in portal calender(dd/mm/yyyy) like this. So i have to done some code here

Ymm_Sc_Bapieindt delvDateRange = new Ymm_Sc_Bapieindt();

wdContext.nodeDaterange().bind(delvDateRange);

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

String datestr = sdfDate.format(new java.util.Date());

delvDateRange.setFrom_Date(datestr);

delvDateRange.setTo_Date(datestr);

input.addDaterange(delvDateRange);

i am getting Error here.

delvDateRange.setFrom_Date(datestr);

delvDateRange.setTo_Date(datestr);

That error is This method setFrom_Date/setTo_Date(Date) in the type Ymm_Sc_Bapieindt is not applicable for the arguments (String)

I m getting this error

How to slove this

Regards

Vijay