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;
}
I am using this method to get date format.But it show me the exception
like this: VERBOSE/CallLog(530): Exception in FormatDateUnable to parse the date 429578575
int callDate = callcur.getInt(dateColumn);
Date date=new Date();
dateStr=dateStr.valueOf(callDate);
date=formatDate(String.valueOf(dateStr));
In this way i passed the value from android.provider.CallLog.calls.DATE
So please tell me mistake I did in this.And how to correct that
Thanks in advance
saran
Date callDate=new Date();
try{
callDate=DateUtils.parseDate(dateString);
}catch(Exception e){
Log.v("CallLog","Exception in FormatDate"+e.getMessage());
}
return callDate;
}
I am using this method to get date format.But it show me the exception
like this: VERBOSE/CallLog(530): Exception in FormatDateUnable to parse the date 429578575
int callDate = callcur.getInt(dateColumn);
Date date=new Date();
dateStr=dateStr.valueOf(callDate);
date=formatDate(String.valueOf(dateStr));
In this way i passed the value from android.provider.CallLog.calls.DATE
So please tell me mistake I did in this.And how to correct that
Thanks in advance
saran