I am using this for date formatting at the moment:
var format = moment().localeData(locale).longDateFormat("L");
return moment(dateObj).format(format);
Where locale can be any market eg. en-US, fr-FR, en-GB etc...
However, the L
date format has the MM/DD/YYYY
(it changes per market, of course) and I just want MM/DD
. I didn't find any format that provides this kind of string. Does anyone know how I can achieve the desired functionality?