We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 134db94 + 262fb78 commit ffe5369Copy full SHA for ffe5369
src/fields/fieldDatePicker.vue
@@ -197,14 +197,19 @@ export default {
197
options: {
198
shortcuts: shortcuts,
199
disabledDate: date => {
200
+ let initdate = '';
201
if (this.dates.length === 0) {
202
return false;
203
}
204
if (this.dates.length === this.field.maxLength
205
&& this.field.subtype === 'date'
206
&& this.field.multiple) {
207
return !this.dates.some(ret => {
- var initdate = new Date(ret.split(/\D+/));
208
+ if (this.field.format === 'yyyyMMdd') {
209
+ initdate = new Date(ret.split(/(\d{4})(\d{2})(\d{2})/));
210
+ } else {
211
+ initdate = new Date(ret.split(/\D+/));
212
+ }
213
return date && date.valueOf() === initdate.valueOf() ;
214
});
215
0 commit comments