Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
@SuppressLint({ "ResourceAsColor", "SimpleDateFormat" }) @Override
public void onClick(View view) {
String date_month_year = (String) view.getTag();
selectedDayMonthYearButton.setText(" " + date_month_year);
Log.e(" ", date_month_year);
SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy");
Date s;
try {
s = df.parse(date_month_year);
setTextColorForDate(R.color.navy, s);
} catch (ParseException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
//setTextColorForDate(R.color.navy, s);
startActivity(new Intent(getApplicationContext(),Notes.class));

try {
Date parsedDate = dateFormatter.parse(date_month_year);
Log.d(tag, "Parsed Date: " + parsedDate.toString());

} catch (ParseException e) {
e.printStackTrace();
}
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900