convertDate function

Converts date columns formatted as characters to be of type datetime