I have date in below format coming from api response and in pojo i take it as string and now date is taken as string and my concern is Date is deprecated in api 16. My main question is how to convert this and assign some date format to it. "date":1561040449000"
historyList.get(position).getTxnDate() = "1561040449000"
long dateToLong = Long.parseLong(historyList.get(position).getTxnDate());
SimpleDateFormat sdf = new SimpleDateFormat("dd MMMM yyyy", Locale.getDefault());
String dateString = sdf.format(new Date(dateToLong));