Moves time/date string conversion into the decoder module

Adds unit tests for this functionality, and adds validation to the string
that we pass into the function.