Hi, I'm trying to send a datetime
format to the Mysql database. I'm using this snippet of code:
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
Date date = new Date();
String fecha = dateFormat.format(date);
But when I send, only the day arrives and the time arrives in 00:00:00
I would like to know what I am doing wrong. Thanks.