serialize date in %Y-%m-%dT%H:%M:%S format