fromString()
Creates a date variable by parsing value according to pattern.
Syntax
Date fromString(String value, String pattern)
- value is the string to parse.
- pattern follows the formatting rules defined by java.text.SimpleDateFormat.