Skip to content

How i can use Bootstrap calendar for Month and Year Only

Niraj Singh

Asked Jan 28, 2015, 1:38 AM EST2 answers
Share
LinkedInX
Hello,
 
I want to use Bootstrap Calendar for Month and Year only  in Razor MVC4, i uses this but when i try to assign calendar value to Model variable then i can't do .
Please reply 

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Python
    $("#datepicker").datepicker( {     format: "mm-yyyy",     viewMode: "months",      minViewMode: "months" });
    
    
    try this
    
    
    to get the calender value in the  model make sure that your control id  and model id should be same.
    0
  • Abhishek Jaiswal
    0
    Hey!
    try this

    $("#datepicker").datepicker( {
        format: "mm-yyyy",
        viewMode: "months", 
        minViewMode: "months"
    });
    0