It will work.
long yourmilliseconds = System.currentTimeMillis();
SimpleDateFormat sdf = new SimpleDateFormat("MMM dd,yyyy HH:mm");
Date resultdate = new Date(yourmilliseconds);
System.out.println(sdf.format(resultdate));
More Related Contents:
- How can I “pretty print” a Duration in Java?
- Calculate Difference between two times in Android
- Android calculate days between two dates
- Getting the current time millis from device and converting it into a new date with different timezone [duplicate]
- How do I get difference between two dates in android?, tried every thing and post
- Android get Current UTC time [duplicate]
- Time: How to get the next friday?
- Java string to date conversion
- Calculating the difference between two Java date instances
- Is java.sql.Timestamp timezone specific?
- java.util.Date vs java.sql.Date
- java.text.ParseException: Unparseable date: java.text.DateFormat.parse(DateFormat.java:579)
- What is this date format? 2011-08-12T20:17:46.384Z
- Android/Java – Date Difference in days
- Convert timestamp in milliseconds to string formatted time in Java
- Should I use Java date and time classes or go with a 3rd party library like Joda Time?
- how to convert milliseconds to date format in android?
- How to subtract X day from a Date object in Java?
- System.currentTimeMillis() vs. new Date() vs. Calendar.getInstance().getTime()
- Best way to compare dates in Android
- Get integer value of the current year in Java
- Why were most java.util.Date methods deprecated?
- How to properly format the date?
- Convert string to Date in java
- How to format date string in java? [duplicate]
- DateTimeParse Exception
- GPS Time Representation library
- Getting Date in HTTP format in Java
- Regex date validation for yyyy-mm-dd [duplicate]
- How to save and retrieve Date in SharedPreferences