This awesome chunk of code is converting date-time strings to timestamps.

Should be in a separate method probably as it's not just casting a number