0

I'm attempting to set the value of a Date input field with this value: '2019-8-25'. It's populating in the UI, but when I try to submit the form it's showing

Input field in the UI

I'm setting it like so:

let date = new Date();
date.setDate(date.getDate() + 90);
cmp.find('oppCloseDate').set('v.value', date.getFullYear()+'-'+date.getMonth()+'-'+date.getDate());

Any ideas?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.