Use SQL Date instead of parsing strings