1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Flatpickr - Changing dateFormat for angular 2

Discussão em 'Angular' iniciado por MaxwellLynn, Setembro 11, 2024.

  1. MaxwellLynn

    MaxwellLynn Guest

    I'm trying to understand his documentation but can't quite figure out how you change the date format from numbers to letters. I'm trying to get 1st April 2018 for example.

    <input type="text"
    mwlFlatpickr
    [(ngModel)]="rangeValue"
    name="Datepicker"
    mode="range"
    dateFormat="Y-m-d">


    I don't know if I need to do this on the html or in my component.ts file.

    If I need to do it in my component.ts file I am looking for an example on how to do this. The documentation on this isn't that helpful.

    Really appreciate help

    Continue reading...

Compartilhe esta Página