moment-hijri
moment-hijri copied to clipboard
Should parse when only Hijri year is in the format
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')
})