javascript - MomentJS time in spanish -


i using next code convert date received mysql database format 1993-10-23 00:00:00 , display in spanish:

alert(moment('1993-10-23 00:00:00', 'yyyy-mm-dd', 'es'));  

23 oct saturday. expect sábado next:

sat oct 23 1993 00:00:00 gmt+0200 

also tried adding: moment.locale('es-es'); , moment.locale('en-es'); , moment.locale('es'); neither works.

what's correct way of converting dates language another?

this seems works, @robg

var locallocale = moment('1993-10-23 00:00:00'); moment.locale('es'); locallocale.locale(false); alert(locallocale.format('llll'));  

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -