Weekday Abbreviations1.0.0+

  1. // From 2.12.0 onward
  2. moment.updateLocale('en', {
  3. weekdaysShort : String[]
  4. });
  5. moment.updateLocale('en', {
  6. weekdaysShort : Function
  7. });
  8. // From 2.8.1 to 2.11.2
  9. moment.locale('en', {
  10. weekdaysShort : String[]
  11. });
  12. moment.locale('en', {
  13. weekdaysShort : Function
  14. });
  15. // Deprecated in 2.8.1
  16. moment.lang('en', {
  17. weekdaysShort : String[]
  18. });
  19. moment.lang('en', {
  20. weekdaysShort : Function
  21. });

Locale#weekdaysShort should be an array of the weekdays abbreviations.

  1. moment.updateLocale('en', {
  2. weekdaysShort : ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
  3. });

Locale#weekdaysShort can be a callback function as well.

  1. moment.updateLocale('en', {
  2. weekdaysShort : function (momentToFormat, format) {
  3. return weekdaysShort[momentToFormat.day()];
  4. }
  5. });