momentjs issue #3002

https://github.com/moment/moment/issues/3002

by Thinkscape

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<textarea id="o"></textarea>

CSS

body, html, textarea {
   width:100%; 
   height:100%;
   padding: 0;
   margin:0;
   font-size: 18px;
}

JavaScript

o = document.getElementById('o');
formats = [
  'YYYY/M/D',
  'D/M/YYYY',
  'D/M/YY'
];

o.value += moment('2016/05/01', formats).toString() + "\n";
o.value += moment('1/5/2016', formats).toString() + "\n";
o.value += moment('1/5/16', formats).toString() + "   <<< INVALID YEAR \n";