toString()
Creates a string by formatting the value of the date according to pattern.
Syntax
String  toString(String pattern)
            - pattern follows the formatting rules defined by java.text.SimpleDateFormat.
 
Creates a string by formatting the value of the date according to pattern.
String  toString(String pattern)