I'm trying to use moment-with-locales.min.js to add (or subtract) days to a locale specific date. What I have are textboxes which contain dates formatted to specific locales. When the user updates one, it resets all of the others adding a specified number of days. However, I can't seem to get moment.js to manipulate the date based on anything other than en-US, so the dates are way off.
I've tried several variations using this jsFiddle
var d = new moment('11/08/2014').locale('en-GB'); //August 11, 2014
alert(d.locale()); //returns en-gb
d.add("days",1).format('L');
//d.add("days",1).locale('en-GB').format('L');
alert(d); //returns November 09, 2014 instead of 12/08/2014
//note, the format is incorrect as well, should be returning short format
I'm certain I'm using it incorrectly, so any advice would be welcome.