Use time.Date rather than creating a string for parsing

The format fails on valid dates like 214-12-12 12:12:12 because of the
lack of a leading 0. This way seems more direct anyway.