Constructs a Date from a String. The format of the String depends on the local date format.
Here are some examples:
date mydate = date.parse('12/27/2009'); System.debug(mydate);
Output: 2009-12-27 00:00:00