Versions
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:
Desktop (please complete the following information):
I tested your examples on Windows Chrome and Firefox and it's working fine for me, are you sure about your code samples? Are you leaving out any additional details about the issue?
I have the same problem.
The date he used does not work here either.
Another example is: 04/11/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
Have the same problem. I noticed that seems to occur only in chrome, using firefox some dates validate without any problem.
@logaretm the reproduction has been updated, for me the problem still happens:

I can't reproduce it by using your link but I encountered similar issue with date_format.
Not sure if it's programmatic validation only but that's my case. I encountered it by using $validator.attach()
Steps to reproduce:
vee-validate.minimal.esm post beta.9paramNames from rules.esm (date_format for example){ validate, options, paramNames }paramNames_Validator.extend('date_format', date_format) and it doesn't work since you've lost paramNamesIt's not a bug, just a change in API
Change was made in https://github.com/baianat/vee-validate/commit/21657547b1db00f28bb68d9216243d7ca962786d#diff-41be0caf6b7db8122ef83bff240e0222
Solution:
.extend doesn't handle object argument you have to do it either line by line or adopt @logaretm code from https://github.com/baianat/vee-validate/blob/master/src/index.js#L7-L10
The change is mentioned in documentation and briefly in beta.9 changelog
I suggest making the change more explicit for the rules that must have paramNames
I don't want to do a PR as I'm having a hard time understanding API internals and limitations of old vs new.
I'm having the same problem with the date 25/10/1992 (firefox and chrome on linux)

I have the same issue with the date 04/11/2018.
Versions
Describe the bug
I have fields set in v-validate="'required|date_format:DD/MM/YYYY'" but when I enter the date 04/11/2018 the validation returns an error saying that the date is not in DD/MM/YYYY format.
To Reproduce
Desktop
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
Given the people who reported this problem really seems to have some connection with environments configured with the Brazilian Portuguese language.
I have rule for validation:
buyerBirthdayRules () {
let maxDate = new Date();
maxDate.setFullYear(maxDate.getFullYear() - 18);
maxDate = helpers.formatDate(maxDate, true)
return `required|date_format:DD.MM.YYYY|after:01.01.1900|before:${maxDate}`;
},
Input any dates triggering error: The buyerBirthday must be after 01.01.1900. Even if I input 01.01.1990 of near dates.
I get error only in Firefox 63. In Chrome 70 all ok.
This issue is a pain to debug properly since firefox and chrome seem to have different opinions on what new Date() should return. This offsets the date validation.
This is related to #1693
VeeValidate uses [email protected] to validate dates, but the library isn't equipped (yet) to deal with timezones and overflown dates eg: 22/33/2013. So we account for that by parsing the date, then formatting the parsed result and match it with the input. If nothing changes then its a valid date, if something changed (day, hour, or whatever) then the date was manipulated in some way (overflow or timezone offset by new Date()) the latter wasn't accounted for.
The new versions seem to address this issue, as the offset isn't observed in firefox anymore, there is a PR that introduces the pkg update #1698 Which introduces a breaking change to the format.
I would appreciate testing the PR against your environments:
update-date-fns branch.yarn and build the project: yarn buildyarn docs:devThis issue is a pain to debug properly since firefox and chrome seem to have different opinions on what
new Date()should return. This offsets the date validation.This is related to #1693
VeeValidate uses
[email protected]to validate dates, but the library isn't equipped (yet) to deal with timezones and overflown dateseg: 22/33/2013. So we account for that by parsing the date, then formatting the parsed result and match it with the input. If nothing changes then its a valid date, if something changed (day, hour, or whatever) then the date was manipulated in some way (overflow or timezone offset bynew Date()) the latter wasn't accounted for.The new versions seem to address this issue, as the offset isn't observed in firefox anymore, there is a PR that introduces the pkg update #1698 Which introduces a breaking change to the format.
I would appreciate testing the PR against your environments:
* Clone the repo * Checkout the `update-date-fns` branch. * install the dependencies: `yarn` and build the project: `yarn build` * Run the local docs version: `yarn docs:dev` * Test the page
It looks like in this branch the validation stopped working.
Tested on:
Firefox 63.0.1 (locale pt_BR) - Windows 10
Chrome 70.0.3538.77 (locale pt_BR) - Windows 10

I believe the problem is just the documentation. Changing date_format from "DD/MM/YYYY" to "dd/MM/yyyy" worked fine.
@fabianosobreira yep the docs haven't been updated yet in the branch, it "breakingly" changes the format.
I am having the same problem. Valid dates are not validating. Has this been merged in yet?
closed by #1698
Most helpful comment
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