Datetime to string conversion in images upload