title: Mask formatter that accepts different types of date formats
body: <p>I have to display a date in the format MM/dd/yyyy. The date to be displayed can be in any of the following formats</p>
  
  <ol>
  <li>MM/dd/yyyy</li>
  <li>MM/yyyy</li>
  <li>yyyy</li>
  </ol>
  
  <p>If only month and year are available and day is not available then I have to display the date in the format MM/__/yyyy leaving the day blank.</p>
  
  <p>If only year is available and day and month are not available then I have to display the date in the format __/__/yyyy leaving day and month blank.</p>
  
  <p>I'm able to display it properly if whole date is available i.e. day, month and year using mask formatter.
  MaskFormatter formattedDate = new MaskFormatter("##'/##'/####");
  but not able to display it if day or month is missing.</p>
  
  <p>Is there any way to display the date leaving date and month blank?</p>