Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Date not formatted [Nuxt JS] #23

Open
mushonnip opened this issue Jan 4, 2021 · 1 comment
Open

Date not formatted [Nuxt JS] #23

mushonnip opened this issue Jan 4, 2021 · 1 comment

Comments

@mushonnip
Copy link

format-date and format-display is not working
the result like this
image

          <VueTailWindPicker
            :init="true"
            :format-date="DD-MMMM-YYYY"
            @change="(v) => {
              searchString = v
              performFiltering()
            }"
          >
            <input
              v-model="searchString"
              list="faqList"
              class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
              placeholder="Cari berdasarkan tanggal"
              @keyup.enter="performFiltering"
            >
          </VueTailWindPicker>
@ACSilver
Copy link

ACSilver commented Feb 3, 2021

Hi, it worked for me with this syntax :

                <VueTailWindPicker :init="false":date-range="true" :format-date="'DD-MM-YYYY'"  @change="(v) => date_mt= v">
                  <input v-model="date_mt" type="text" placeholder="date" name="date-mt" id="date-mt" class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border border-gray-400 rounded-md">
                </VueTailWindPicker> 

Here is the result :

Capture

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants