Itemcommand Contains Function Python Format Datetime To String