I'm using a JXDatePicker and i've set the format as;
DateFormat[] formats = {new SimpleDateFormat("dd-MMM-yyyy")};
DateFrom.setFormats(formats);
DateTo.setFormats(formats);
DateFrom and DateTo are the two JXDatePicker objects.
I need dates in the format of dd-MMM-yyyy as the value returned by
datefrom=DateFrom.getDate().toString();
dateto=DateTo.getDate().toString();
but the returned value is in the format;
'Thu Mar 20 00:00:00 EAT 2008'
What is the problem?