You can use the datetime.datetime.strptime() function to create a datetime object, then datetime.datetime.strftime() to return the correct formatted date as follows:
from datetime import datetime dt = datetime.strptime('2015-04-08T07:52:00Z', '%Y-%m-%dT%H:%M:%SZ') print dt.strftime('%d/%m/%Y')
source share