moment-hijri icon indicating copy to clipboard operation
moment-hijri copied to clipboard

Should parse when only Hijri year is in the format

Open xsoh opened this issue 9 years ago • 0 comments

Should parse when only Hijri year is in the format

it('should parse when only Hijri year is in the format', function() {
      var m = moment('03 1410 25', 'MM hYYYY DD')
      m.format('YYYY-MM-DD').should.be.equal('1990-03-25')
      m = moment('03 10 25', 'MM hYY DD')
      m.format('YYYY-MM-DD').should.be.equal('1990-03-25')
    })

xsoh avatar Mar 14 '15 10:03 xsoh