Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. public class Test {
  3. public static void main(String[] args) {
  4. long time2 = 1491241218560L ;
  5. Date date = new Date(time2);
  6. SimpleDateFormat dateFormat = new SimpleDateFormat("MMM DD, yyyy");
  7. System.out.println(dateFormat.format(date));
  8.  
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement