Momentjs Time In Spanish
I am using the next code to convert a date received from a MySQL database format 1993-10-23 00:00:00 and display it in spanish: alert(moment('1993-10-23 00:00:00', 'YYYY-MM-DD', '
Solution 1:
This seems to work, thanks @RobG
var localLocale = moment('1993-10-23 00:00:00');
moment.locale('es');
localLocale.locale(false);
alert(localLocale.format('LLLL'));
Solution 2:
The following method worked for me
moment(agreement.dateStart).locale('es').format('LLLL')
Post a Comment for "Momentjs Time In Spanish"