Hi..
I am facing some problem while formatting the date.
SimpleDateFormat sdf=new SimpleDateFormat("yyyy/MM/DD");
java.util.Date d=sdf.parse(Edate.substring(0,9));
Date nd=new Date(sdf.format(d));
Im getting EDate value from a service in the format yyyy-mm-dd.
I have to set this date value to another method ,so im trying to convert the
string to date.
When i try to print d and nd values ,it is not printimg the value i retrieved and it is printimg in the format dd/mm/yy.
What can i do to get the correct date and in the same format as yyyy/mm/dd?
Thanks in advance.