End Program Function Python Format Datetime To String