In my MVC application's View Model class I have two felds Start date and end date.

```
public class MyClass
{
   public DateTime StartDate {get;set;}
   public DateTime EndDate {get;set}
}

```

Here is code snippet from view

```
 @Html.Kendo().DatePickerFor(m => m.StartDate)
 @Html.Kendo().DatePickerFor(m => m.EndDate)

```

The Id and Name generated for StarDate and EndDate are "StartDate" & "EndDate" respectively.

Whenever the value of StartDate changes I want my EndDate's value to be StartDate + 2 year
So basically EndDate = StartDate + 2 years
This is what I have at the moment

```
<script>
    $("#StartDate").on('change',function() {
        var value = $("#StartDate").val();
        $("#EndDate").val() = value;
    });
</script>

```

I am already stuck at trying to set EndDate value to StartDate, in the line

```
 $("#EndDate").val() = value;

```

I get error saying `"L-value is expected"`

So, is there some simple way to achieve the result I explained?

The date format i have in textbox is **9/17/2015**