you could convert you date like this:
private Date ConvertToDate(String dateString){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
Date convertedDate;
try {
Log.i("SocialFeedLatestBuzz", "Date before convert = " + dateString);
convertedDate = dateFormat.parse(dateString);
Log.i("SocialFeedLatestBuzz", "convertedDate = " + convertedDate);
} catch (ParseException e) {
Log.i("SocialFeedLatestBuzz", "parse exceptrion " );
e.printStackTrace();
return null;
}
return convertedDate;
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en