Implemented datetime parsing