def encode(self, value):
        return value.strftime(self.format)
Converts a python datetime object to a string format controlled by the
dataset/ETHPy150Open saymedia/python-simpledb/simpledb/models.py/DateTimeField.encode