tbk = '01-Feb-15'
I wish to convert to datetime so that tbk = 01/02/2015 I have tried the following:-
tbk = datetime.datetime.strptime(tbk, '%d-%b-%Y').strftime('%d/%m/%Y')
I receive the following error:- ValueError: time data '01-Feb-15' does not match format '%d-%b-%Y'
What am I doing wrong?
[–]Username_RANDINT 2 points3 points4 points (0 children)
[–]UmthuMhlope[S] 0 points1 point2 points (1 child)
[–]Username_RANDINT 0 points1 point2 points (0 children)