-1
Date Date1 = jXDatePicker1.getDate();
datestartField.setText(Date1);

Hint: String cannot be converted to date.

MikeCAT
  • 73,922
  • 11
  • 45
  • 70
ranga.sl
  • 103
  • 5

1 Answers1

0

date can not assign to textfield as it is object .You can convert it in String using SimpledateFormat

    Date Date1 = jXDatePicker1.getDate();
    DateFormat df = new SimpleDateFormat("dd MMM yyyy hh:mm a",
                                Locale.US); 
   datestartField.setText(df.format(date1));

Hope so it will help you..

Prashant Thorat
  • 1,752
  • 11
  • 33
  • 54