Convert text to date

The date() function "Converts an integer representing a number of days from January 1, 1970 (the Unix Epoch) to a standard date value." See the docs on Converting dates and time.

Why do you need to convert to a date? See this thread for some info that may be useful: