Code: Alles auswählen
def datum_umdrehen(eing):
eing = str(eing)
try:
a = eing.split(",")
if int(a[0]) < 1500:
wert = str(a[2]+","+a[1]+","+a[0])
print "-----------<1500---------------"
print wert
return wert
else:
print "-----------unter---------------"
print wert
wert = str(a[0]+","+a[1]+","+a[2])
return wert
except:
return eing
funktioniert alles super. ich möchte aber dass 2003,03,20 raus kommt.