'Convert an ORM ``value`` into a :class:`datetime` value.'

@staticmethod
def from_string(value):

    if (not value):
        return None
    value = value[:DATETIME_LENGTH]
    if (len(value) == DATE_LENGTH):
        value += '    00:00:00'
    return datetime.strptime(value, DATETIME_FORMAT)
