title: Expiration Date Format Stripe API in Swift
body: <p>I have a custom form for collecting card info. I'd like to have the expiration date in two separate fields for MM and YYYY. I've added the two fields with a forward slash embedded in the middle however when I try to complete a transaction it is returning an invalid card now even if I enter valid credit card numbers, listed here <a href="https://stripe.com/docs/testing" rel="nofollow">https://stripe.com/docs/testing</a>. I originally had the expiration date set to one field and it was working fine. Did I go wrong somewhere? Thanks in advance</p>
  
  <pre><code>var stripeCard = STPCard()
  
  if self.expMonth.text.isEmpty &amp;&amp; self.expYear.text.isEmpty == false {
  
  let expMonth = UInt(self.expMonth.text.toInt()!)
  let expYear = UInt(self.expYear.text.toInt()!)
  
  //Get Stripe card info token
  
  stripeCard.number = self.creditCardField.text
  stripeCard.cvc = self.securityField.text
  stripeCard.expMonth = expMonth
  stripeCard.expYear = expYear
  
  
  }
  
  var underlyingError: NSError?
  stripeCard.validateCardReturningError(&amp;underlyingError)
  if underlyingError != nil {
      self.handleError(underlyingError!)
      return
  }
  </code></pre>