Preprocess Text Function Python Format Datetime String