If you cast the date to a string in Postgres, you'll need to change this.