Month and Year Datepicker

0

Following response from this #

<script>$(".datepicker").datepicker( {
  format: "mm-yyyy",
  viewMode: "months",
  minViewMode: "months"
});

I'm trying to put only month and calendar year

05/2017

Reference: link

    
asked by anonymous 03.05.2017 / 14:08

1 answer

1

This seems like a very CSS problem. Of two one:

  • A conflict between the CSS of the datepicker component that you use (which is not native to the bootstrap) and the CSS of the bootstrap or your site has occurred. Note that the component you use apparently had its last update in 2013, while Bootstrap has continued to evolve since then.

  • The CSS of the datepicker component was missing.

To verify this, use the browser development tools (usually accessible via the F12 key). Verify that formatting rules are applied in the sample Web site that you use. See if the same rules apply to your own page. This way you can check what rules your page has not followed, find them, and include or adjust CSS according to your needs.

If you check that the conflict is version (ie: you use bootstrap version 3.0.0, not supported by Eyecon's datepicker), you can switch to an older version of the boostrap, or look for another date selection component . The UX Solutions datepicker is free and compatible with version 3.0.0.

    
03.05.2017 / 15:07