im working on small project and i need to display date from api , api uses millisecounds and i cant really find a way to get date without time. So far i didnt find anything usefull on internet. Code i was using for this is:
ts= millisecounds im using
date = datetime.datetime.fromtimestamp(ts / 1000, tz=datetime.timezone.utc)
print(date)
But it prints something like 2010-10-10 10:10:10.100000+00:00 only thing i want from this is first part (2010-10-10) how can i get date?