title: Date of Birth in Mongoose Schema
body: <p>I feel as though this is a simple question, but after doing google searches and looking at the mongoose documentation, I have not found a good answer (or at least one that I understand).</p>
  
  <p>I want to include in the Profile Schema a Date of Birth Block. Now, this is my idea but I am unsure if this will work well within MongoDB.</p>
  
  <p>I want to be able to have the User enter this information into their profile, and save it into the database.  </p>
  
  <pre><code>birthday: {
  day: {
    type: Number
  },
  month: {
    type: Number
  },
  year: {
    type: Number
  }
  </code></pre>
  
  <p>Is this the best method? does it cause problems in the long run? what is your guys opinion on the proper way to using Node.Js/Mongoose Schemas and using birthdates?</p>
  
  <p>I appreciate the help guys. </p>