converted string from text in put into integer because they want an integer for dates to search