GithubHelp home page GithubHelp logo

Comments (3)

cyc1ingsir avatar cyc1ingsir commented on June 8, 2024

It might have to do with the fact that the format option is not a toplevel option - at least not in newer versions of the datarangepicker.
This issue might help:
https://github.com/dangrossman/bootstrap-daterangepicker/issues/823
This directive's line

options.format = $attributes.format || 'YYYY-MM-DD';

isn't working for me either. But this might have been changed in recent versions of the daterangepicker

from ng-bs-daterangepicker.

maruiz93 avatar maruiz93 commented on June 8, 2024

The format attribute does not work for me either.
I select my custom format with the locale attribute.

<input type="daterange" ng-model="mainCtrl.model"  locale="mainCtrl.locale"/>
this.locale = {
        'format': 'DD MMM YYYY HH:MM',
    };

from ng-bs-daterangepicker.

leap0ffaith avatar leap0ffaith commented on June 8, 2024

This worked for me on version 0.0.6.

<input type="daterange" ng-model="dates4" ranges="ranges" format="DD-MMM-YYYY">

from ng-bs-daterangepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.