title: Is there a function that takes a year, month and day to create a date in PostgreSQL?
body: <p>In the docs I could only find a way to create a date from a string, e.g. <code>DATE '2000-01-02'</code>. This is utterly confusing and annoying. What I want instead is a function that takes three parameters, so I could do <code>make_date(2000, 1, 2)</code> and use integers instead of strings, and returns a date (not a string). Does PostgreSQL have such a built-in function?</p>
  
  <p>The reason I'm asking this is because I dislike the use of strings for things that are not strings. Dates are not strings; they're dates.</p>
  
  <p>The client library I use is HDBC-PostgreSQL for Haskell. I'm using PostgreSQL 9.2.2.</p>