var format = 'EEEE, D 'de' MMMM 'de' Y'
moment(date).format(format);
I have a custom format and use it with moment
and got this
exp: segunda-feira, 2 de janeiro de 2017
act: Segunda-feira, 2 11 Janeiro 11 2017
Note the placeholder de
in the pattern actually got parsed ..
Is there a way for me to get the date in the expected format segunda-feira, 2 de janeiro de 2017
using moment?