convert datetime to unix timestamp and convert it back in python,int(dt.strftime('%s'))