Please can some help me debug my code on time formatting and parsing i.e strftime and strptime

Please can some help me debug my code on time formatting and parsing i.e strftime and strptime

Please post the code you are having a problem with and state the excact proble.
Use the </> preformat button when you paste the text of the code, no pictures of code please.