How to convert string in timestamp generated by php with the time () method generated for example: 1504541885 for Date in java
How to convert string in timestamp generated by php with the time () method generated for example: 1504541885 for Date in java
You can do this:
Integer timeStamp = Integer.Parse("1504541885");
Date time = new Date((long) timeStamp * 1000);
java.util.Date