I am using one Android app in which I want to convert the timestamp to date, but I could not succeed. I tried things below. Please check this if I am doing something wrong.
I pass this value:
myTimestamp=1328015914;
DateFormat.getDateFormat(mContext).format(new Date(myTimestamp * 1000));
He returns 11/1/1970, but its wrong.
Please help me in this matter.
Thanks Mantan Dalal
source
share