Python Get Specific Character From String To Datetime