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