Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format seems to not working #286

Open
NickGi opened this issue Dec 16, 2021 · 2 comments
Open

format seems to not working #286

NickGi opened this issue Dec 16, 2021 · 2 comments

Comments

@NickGi
Copy link

NickGi commented Dec 16, 2021

I've set format to 'dd-mm-yyyy' and separator to '/' under localeData but it always show dates as 'mm/dd/yyyy'.
Example: '31/12/2021' is shown as '12/31/2021'

Am I missing something else?

@NickGi
Copy link
Author

NickGi commented Dec 16, 2021

I figured out:
If you have this case:


<template>
  <vue-datepicker-range v-bind="myData">
</template>
<script>
...
...
data () {
  return {
    myData: {},
  }
}
...
...
mounted () {
  this.myData = {
    ...
    ...
    localeData: {
      format: 'dd-mm-yyyy',
      separator: '/'
    }
  }
}

Locale settings doesn't works! Other settings are fine, instead.

@VanillaTank
Copy link

I need solve it issue too

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

No branches or pull requests

2 participants