I have json format of TimeStamp:
{
"time":1443435459000,
"javaClass":"java.sql.Timestamp"
}
My question is how to create Date from it.
I have json format of TimeStamp:
{
"time":1443435459000,
"javaClass":"java.sql.Timestamp"
}
My question is how to create Date from it.
You can do it by this:
Calendar start = Calendar.getInstance();
start.setTimeInMillis( timeStampValue.getTime() );
Date myDate = start.getTime();