It allows the user to interpret string date format into a Date object. We can change the date from one format to other. The SimpleDateFormat class helps in formatting and parsing of data. So any date is the number of milliseconds passed since January 1, 1970, 00:00:00 GMT and the Date class provides a constructor which can be used to create Date from milliseconds. The Date class in Java internally stores Date in milliseconds. The task is to write a program in Java to convert Milliseconds to a Date which Displays the date in dd MMM yyyy HH:mm:ss:SSS Z format.
0 Comments
Leave a Reply. |