private String getDate(long timeStamp)
{
SimpleDateFormat
objFormatter = new SimpleDateFormat("MM/dd/yy hh:mm:aa");
objFormatter.setTimeZone(TimeZone.getDefault());
Calendar
objCalendar = Calendar.getInstance(TimeZone.getDefault());
objCalendar.setTimeInMillis(timeStamp*1000);
String
result = objFormatter.format(objCalendar.getTime());
objCalendar.clear();
return result;
}
I
will be happy if you will provide your feedback or follow this blog. Any suggestion
and help will be appreciated.
Thank
you :)
No comments:
Post a Comment