I am brand new to the world of vue.js and I have encountered a question. My form includes two date input fields labeled as Delivery date and Knock date.
My goal is to automatically set the knock date to be two days before the delivery date. For instance, if the delivery date is 20/9/2021, then the knock date should be 18/9/2021.
I would appreciate any guidance on how to achieve this functionality in vue.js.
Here are the form fields provided below:
<template>
<form>
<label for="">PO Delivery Date</label>
<input
class="form-control"
type="date"
v-model="PO_DeliveryData"
v-validate="'required'"
placeholder="PO Delivery Date"
/><br />
<label for="">Knock Date</label>
<input
class="form-control"
type="date"
v-model="knock_Date"
v-validate="'required'"
placeholder="Knock Date"
/><br />
</form>
</template>
<script>
export defaults:{
}
</script>