Assuming its the time since 1/1/1970 in seconds. you can try
String dateAsText = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
.format(new Date(1333125342 * 1000L));
More Related Contents:
- What’s wrong with Java Date & Time API? [closed]
- What’s the difference between Instant and LocalDateTime?
- How to parse/format dates with LocalDateTime? (Java 8)
- How to parse dates in multiple formats using SimpleDateFormat
- How to use an Internet time server to get the time?
- Parsing ISO-8601 DateTime with offset with colon in Java
- SimpleDateFormat parsing date with ‘Z’ literal [duplicate]
- Java 8: Difference between two LocalDateTime in multiple units
- UnsupportedTemporalTypeException when formatting Instant to String
- Java 8 Date and Time: parse ISO 8601 string without colon in offset [duplicate]
- Calendar returns date in wrong time zone
- How to subtract X day from a Date object in Java?
- Java: Get current Date and Time from Server not System clock
- Get yesterday’s date using Date [duplicate]
- Convert Json date to java date
- Differences between Java 8 Date Time API (java.time) and Joda-Time
- Get integer value of the current year in Java
- How to round time to the nearest quarter hour in java?
- Most idiomatic way to print a time difference in Java?
- Java/MongoDB query by date
- How to format date string in java? [duplicate]
- How can I convert seconds since the epoch to hours/minutes/seconds in Java?
- Convert LocalDate in DD/MM/YYYY LocalDate [duplicate]
- How can I parse/format dates with LocalDateTime? (Java 8)
- GPS Time Representation library
- Natural Language date and time parser for java [closed]
- Java 8: Calculate difference between two ZonedDateTime
- A datetime equivalent in java.sql ? (is there a java.sql.datetime ?)
- converting a date string into milliseconds in java [duplicate]
- How to combine date and time into a single object?