title: How to accept only Month and Year using DatePicker in iOS
body: <p>I am building an app using swift and in that app there is one field for accepting expiry date for Debit card for payment purpose. How can I accept only month and year by using DatePicker in Swift. </p>
  
  <p>If it is not possible using datepicker then please suggest any another way.</p>
  
  <p>Thank you in advance.</p>