public static Date formatDate(String dateString){ Date callDate=new Date(); try{ callDate=DateUtils.parseDate(dateString); }catch(Exception e){ Log.v("CallLog","Exception in FormatDate"+e.getMessage()); } return callDate; } int dateColumn = callcur.getColumnIndex(android.provider.CallLog.Calls.DATE); int callDate = callcur.getInt(dateColumn); Date date=new Date(); dateStr=dateStr.valueOf(callDate); date=formatDate(String.valueOf(dateStr)); I convert it into string and then i passed it.But It show me the exception. Thanks in advance Saran
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---