If you want a simple componente like as :
You can :
$ meteor add rajit:bootstrap3-datepicker
And use in this way :
js file :
Template.SessionEvent.rendered = function(){
$('.date').mask('00-00-0000'); // Mask
var today = new Date();
today.setHours(0,0,0,0); // put zero hours, seconds, among others...
$('.date').datepicker({
format: "dd-mm-yyyy", // format
startDate: hoje, // To can select datas after today
clearBtn: true, // To show clear button
language: "pt-BR" // language
});
};
html file :
<input type="text" placeholder="Data" class="date form-control" >
Look : I’m using the class .date.
This package is really nice !!!
You can try make and test all options in : http://eternicode.github.io/bootstrap-datepicker/
