如何做到这一点,而不是把sqlDate,想象2017-01-08放到01-08-2017?
@Override
public void onSelectDate(Date date, View view) {
if(DatesList.contains(date)){
myDB = CustomApplication.getDatabaseHelper();
java.sql.Date sqlDate = new java.sql.Date(date.getTime());
int dateID = myDB.getDateId(sqlDate);
Log.d(Tag,""+sqlDate);
String returnedData = getData(dateID);
Intent i = new Intent(getContext(),TesteInfoDisplay.class);
startActivity(i);
}
else{
Toast.makeText(getContext(),"Não tem nenhum evento nesse dia.",Toast.LENGTH_LONG).show();
}
}
};
单击阵列上的日期时的日志记录是例如2017-01-01,我希望它是01-01-2017