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

Hint: String cannot be converted to date.

MikeCAT
  • 69,090
  • 10
  • 44
  • 65
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,598
  • 11
  • 31
  • 52