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

Facing issue in set date in rangedate-picker #76

Open
mvtdev1050 opened this issue Oct 17, 2018 · 0 comments
Open

Facing issue in set date in rangedate-picker #76

mvtdev1050 opened this issue Oct 17, 2018 · 0 comments

Comments

@mvtdev1050
Copy link

mvtdev1050 commented Oct 17, 2018

I'm trying to set a default date in vue-rangedate-picker but it's not showing in input. Follow is my code:-

<vue-rangedate-picker v-model="effected_date" @selected="onDateSelected2" i18n="EN" format="YYYY-MM-DD">

and model initialize:-

data: function () { return { effected_date: { start: '2018-10-18', end: '2018-10-20', } } }

But it's not worked. Then I have searched solution and got this:-

<vue-rangedate-picker :initRange="datePickerConfig.initRange" @selected="onDateSelected" i18n="EN" format="YYYY-MM-DD">

data: function () {
return {
datePickerConfig:{
initRange: {
start: new Date('2018-10-15'),
end: new Date('2018-10-21')
}
}
}
}

Still it's not worked for me. Please help me to get solution for set default date.

Thankyou

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

1 participant