Giter Club home page Giter Club logo

Comments (3)

ajayojha avatar ajayojha commented on May 26, 2024 1

I hope the issue has been resolved in your project also. I am closing this issue because now I don't see any further action on this, feel free to log a new issue if there is any issue.

from rxweb.

ajayojha avatar ajayojha commented on May 26, 2024

I haven't released the new version. I did two things in the code and it is working as expected

  1. I have added ReactiveFormConfig in app.component to apply internationalization for date. Here is the code :
ReactiveFormConfig.set({
// whatever your format you want to apply in date. 
      "internationalization": {
                "dateFormat": "mdy",
                "seperator": "/"
            }
  });
  1. I have replaced your code as below :
deadlineDate: ['', [Validators.required, RxwebValidators.minDate({value:new Date("07/07/2019")})

Please refer working example on stackblitz: https://stackblitz.com/edit/rxweb-mindate-validator-angular-reactive-from?file=src%2Fapp%2Fcontact%2Fadd%2Fcontact-add.component.ts and also refer the appcomponent for default date format.

'ReactiveFormConfig' documentation is not available on rxweb.io. Sorry for this. We are working on the documentation part and try to finish ASAP.

Please let me know if you have any question.

from rxweb.

ajayojha avatar ajayojha commented on May 26, 2024

@jbeckton we have released the new version "1.4.3" with some good feature of minDate and maxDate Validator. We have provided the feature of Cross-Field Validation in both of the validator. Please refer the stackblitz example for more information.

from rxweb.

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.