title: pgSQL : insert date format (leading zeros)?
body: <p>I want to insert a date into my pg database, but I haven't got a clue what the correct format is and the pg help isn't really helping.</p>
  
  <p>I have my date from form in d-m-yyyy format. So leading zeros are omitted. </p>
  
  <p>How can I insert this correctly, is there a function to add leading zeros (either pg or php) ?  </p>