Simple date formatter example
In this section of simple date formatter example we are going to describe you how you can use different constructors of SimpleDateFormat class to convert the date into the specified format. There are various constructors of SimpleDateFormat class.
Getting time in Milliseconds
In the previous examples of Date class we have created simple Date and now in this section we are going to get the current date and time in the milliseconds. To do this we have used getTime() method of Date class.