Python datę od yy/mm/dd do yy-mm-dd
lastconnection = datetime.strptime("21/12/2008", "%d/%m/%Y").strftime('%Y-%m-%d')
Yucky Yacare
lastconnection = datetime.strptime("21/12/2008", "%d/%m/%Y").strftime('%Y-%m-%d')
lastconnection = datetime.datetime.strptime("21/12/2008", "%d/%m/%Y").strftime('%Y-%m-%d')
#corrected version