Parse date strings to date format.

The addmodule page should now be working as planned. It will display a
confirmation message for successful adds, and an error message when
trying to add a module that already exists in the table