title: Retrieve date(only) column as string or map to string without time using Prisma ORM
body: <p>I'm using Prisma2 (<code>prisma @prisma/client</code>).</p>
  <p>In my underlying postgres db I have a column of type <code>date</code>, i.e. date only without time.</p>
  <p>Prisma returns for this column a Javascript <code>Date</code> object (<a href="https://www.prisma.io/docs/concepts/components/preview-features/native-types/native-types-mappings#datetime" rel="noreferrer">https://www.prisma.io/docs/concepts/components/preview-features/native-types/native-types-mappings#datetime</a>), which carries time information as well.</p>
  <p>After serializing I end up with a full ISO string of date and time. However, I'd only like to return the date part (time part will always be 00:00:00).</p>
  <p>At the moment I do:</p>
  <pre><code>return await prisma.entity.findMany().map(e =&gt; ({ ...e, date: e.date.toISOString().substring(0,10) }))
  </code></pre>
  <p>I'd like to get rid of the manual mapping as I have to repeat it for every query and the mapping gets more complicated for nested queries etc. pp.</p>
  <p>Does Prisma support some kind of transformation (e.g. using class-transformer) that is added to the model (and automagically performed)? I haven't found anything in the docs. Or can I teach Prisma to return this column as a string, not a Date object?</p>