jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

Show month name instead of month number in Date Box #421

Closed georges49 closed 6 years ago

georges49 commented 6 years ago

Hi, Is there a way to show the month name instead of month number in date box? So I want it to be Jan, Feb instead of 1 2 I searched in the library documentation but I could not find it.

jtsage commented 6 years ago

Yep, but it's not obvious.

http://dev.jtsage.com/DateBox/api/dateFieldOrder/

basically, set overrideDateFieldOrder: ["M", "d", "y"]

(capital M instead of lower case. You could also do this in a i18n language file if you support more than one language and it doesn't make sense to change it for everybody)

georges49 commented 6 years ago

Thanks a lot @jtsage . That worked the way I want it.