Android Club – Convert timestamp to Date

Here is the way how to convert timestamp to Date. Pay attention to our timestamp in seconds format. That’s why we are multiplying it to 1000.

        long time = 1437591600;
        Date date = new Date(time*1000);
        System.out.println(date);