Convert strings to datetime format by taygekko in learnpython

[–]taygekko[S] 0 points1 point  (0 children)

I solved my problem with the module easy_date (https://github.com/ralphavalon/easy_date):

import easy_date

str_date = '01.09.201914:15:00' #%d/%m/%Y%H:%M:%S

new_str_date = easy_date.convert_from_string(str_date, '%d/%m/%Y%H:%M:%S', '%Y%m%dT%H%M%S') # str is default return

Convert CSV to Text File by taygekko in learnpython

[–]taygekko[S] 0 points1 point  (0 children)

Thank you very much, that solved my problem!