This discussion is archived
4 Replies Latest reply: Oct 3, 2013 1:45 AM by 9d452cf7-d17f-4d1e-8e0e-b22539ea8810 RSS

Need Help: Converting  String into Date ..................

9d452cf7-d17f-4d1e-8e0e-b22539ea8810 Newbie
Currently Being Moderated

Hi Frds,

I am new to OAF................

I am facing the problem to convert the string into Date and assign to a field .......... getting the error Unparseable Date

plz... help me out in this......................

 

here is the code ::::

 

String payslipDate = pageContext.getParameter("payment_date);

try

{

SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyyy");

Date  convDate = sdf.parse(payslipDate);

 

OAMessageTextInputBean  pDate = (OAMessageTextInputBean)webBean.findChildRecursive("effDate);

pDate.setValue(pageContext,convDate);

}

catch(Exception e)

{

  throw new OAException("Error in date conversion"+e,OAException.Error);

}

............................

 

Thanks &  Regards,

Jaya

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points