title: C - Using scanf (or any other function) to get date MM/DD/YYYY in int
body: <p>I'm writing a C program in class that requires us to input dates as integers in a structure defined as:</p>
  
  <pre><code>typedef struct date{
  
      int month;
      int day;
      int year;
  
  }Date;
  </code></pre>
  
  <p>Now that really would not be a problem except it requires that you can only input it as mm/dd/yyyy. </p>
  
  <p>I was thinking if maybe I can input it as a string and just use a loop to seperate the three into other variable strings and convert those to int.</p>
  
  <p>But then I remembered that </p>
  
  <pre><code>printf("Enter Date (MM DD YYYY): ");
  scanf("%d %d %d",&amp;...);
  </code></pre>
  
  <p>is possible. Is there a way to just 'ignore' '/' all together?</p>