Hello , 
I want to insert a Date object in mysql database , which has a Date type in 
the database as well , i am having problems inserting the date .
Here is what i wrote :

String s;
 s = date.getCurrentMonth() + "/" + date.getCurrentDay() + "/" + 
date.getCurrentYear();
 DateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
 try {
     Date startDate = (Date) formatter.parse(s);
} catch (ParseException ex) {
 }

I'm getting 0 errors in the code.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5f7cc57a-9ca4-4347-b4ff-76921b8fc093%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [codenameone-discussio... mohamedamine.benbetaieb via CodenameOne Discussions

Reply via email to