I want to get date from string and again string from date. I have tried using simple date format but textview shows no value.
df = new SimpleDateFormat("MM/dd/yyyy hh:mm:ss aa");
Date date = new Date();
Date date1 = new Date();
startTime = mEvent.getFromDate();
date = df.parse(startTime);
df = new SimpleDateFormat("HH:mm a");
startTime = df.format(date);
showFromTime.setText(startTime);
I want to get date string from class mEvent is an instance of class , and I want to convert string into hours and mins format. start time is string and showFromTime is a text view. It dose not show any time.
Whats going wrong?