question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Date 08/10/2000 in DD/MM/YYYY format is invalid

See original GitHub issue

Versions

  • vee-validate: 2.1.0-beta.9
  • vue: 2.5.2

Describe the bug I have fields set in v-validate="{date_format: 'DD/MM/YYYY'}", but when I enter the date 10/8/2000 the validation returns an error saying that the date is not in DD/MM/YYYY format

To Reproduce Steps to reproduce the behavior:

  1. Go to https://baianat.github.io/vee-validate/guide/rules.html#date-format. In my browser, the default format is DD/MM/YYYY (pt-br)
  2. Type the date 08/10/2000
  3. See error

Demo Link Edit Vue Template

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Browser [chrome]
  • Version [69]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
georgerodriguescommented, Oct 13, 2018

Same here, i have another dates too: 08/10/2000, 06/10/1996, 06/10/1997, … http://prntscr.com/l5o7v0 @woodyalan, @viniazvd and i are brazilians, maybe have some connection with the language of the browser

4reactions
fabianosobreiracommented, Nov 7, 2018

I believe the problem is just the documentation. Changing date_format from "DD/MM/YYYY" to "dd/MM/yyyy" worked fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve invalid date format error for imports in version 10
Solution: 1. Try changing the import date format 2. If step 1 does not resolve your issue, confirm all date fields are the...
Read more >
Getting Invalid Date for date string as "19-02-2020" and date ...
the Date string format is YYYY-MM-DDTHH:mm:ss.sssZ where T is a delimiter and Z reffer to the timezone (optional).
Read more >
Invalid date instead of dd/mm/yyyy - Google Cloud Community
So it sounds that the app or device from where the app is updated is capturing dates in mm/dd/yyyy format and the back...
Read more >
Issue: "Invalid date" or Day and Month Reversing for Notes ...
Issue: Matter Notes saved as MM/DD/YYYY when Date/Time Format set to DD/MM/YYYY. Environment: Clio Manage. Additional Information:.
Read more >
Date Format "dd/MM/yyyy" Goes Wrong While Writing in Excel
Hello All, I get a date from Date.Today.ToString(“dd/MM/yyyy”) and my date format in Excel is English(United Kingdom) which is same format ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found