Python Converting Date To String In Db2 Substring