Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

twitter bootstrap datepicker internationalization

I am using this twitter bootstrap style datepicker from Stefan Petre

However, I don' t know how to set the format of the datepicker to french, apart from changing it directly from the sources, is there a better way to do it ?

Thanks all

like image 885
dtjmsy Avatar asked Nov 12 '12 09:11

dtjmsy


2 Answers

dtjmsy, you can use this as well:

$('.datepicker').datepicker({
   language: "pt-BR"
});

And here a link with a good sandbox where you can try some configurations: http://eternicode.github.io/bootstrap-datepicker/?#sandbox

like image 188
Renan Barreiro Avatar answered Sep 20 '22 19:09

Renan Barreiro


I've been using a modified version of Stefan Petre's datepicker, and at the bottom of the docs there it says to include your locale file after you included the main datpicker file.

like image 29
Yohn Avatar answered Sep 23 '22 19:09

Yohn