
get date from Jdatechooser in format ddmmyyyy
i am trying to use a component by KAI TOEDTOr called Jdatechooser http://www.toedter.com/en/jcalendar/api/index.html at this website now i can't fetch date from it ina a specific format... but i am able to get date i am using netbeans
i have tried all groups no one seems to know it, roseindia has been here forever and if you guys can help me then it will be great please i amsending the code i amusing to fetch it i have imported java.util.* and java.text.* tahst it plz help its giving NULLPOINTER EXCEPTION CODE:
private void jDateChooser1PropertyChange(java.beans.PropertyChangeEvent evt) {
// TODO add your handling code here:
GregorianCalendar c= new GregorianCalendar();
DateFormat df=new SimpleDateFormat("ddMMYYYY");
Date p = jDateChooser1.getDate();
String str=df.format(p);
jLabel1.setText(str);
}

yes that is happening i have done that much but the probelm is that i am not able to fetch date from it to store in the database...its just showing the date in the textfield but when i try to store that date using getDate form datechooser it is giving me everything from time to year to date and i can't store that in the database thats why. i just want to store date so i can compare it later on plz just tell me the code to store date using this DATEPICKER as above code does not work
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.