Question: I'm using a KendoUI for Angular datepicker; to define todays date, I use:

```
public value: Date = new Date();

```

What do I do if I want to display the date as todays date, minus 180 days?

This is in typescript/angular 4, etc.. as in my component.ts file:

```
import { Component, OnInit } from '@angular/core';

@Component({
   selector: 'app-record-filter-from-date',
   template: `
   <div class="form-group">
      <label>From Date:</label>
        <kendo-datepicker class="k-widget k-datepicker k-header crowd-control k-input" style="width: 100%;"
            [(ngModel)]="value"
            [format]="'dd-MMM-yyyy'"
            #dateModel="ngModel"
        ></kendo-datepicker>
</div>
`,
 styleUrls: ['./record-filter-from-date.component.css']
})

export class RecordFilterFromDateComponent implements OnInit {
  public value: Date = new Date();

  constructor() {

 }

 ngOnInit() {

 }
}

```

Answer: 
I very much appreciate the replies from everyone, however, they did not function as expected with KendoUI for Angular. The currently undocumented way to manipulate the date in the Kendo datePicker object is:

You'll require the 'addDays' @progress module:

```
import { addDays } from '@progress/kendo-date-math';

```

THEN one can do the math to get the date they are expecting, in this case:

```
public value: Date = addDays(new Date(), -180);

```

Plunk: <http://plnkr.co/edit/OIiCPfqnu4Nb4knZiPF1?p=preview>
JavaScript class `Date` may be constructed passing milliseconds since 1 January 1970 00:00:00 UTC, so you can use it like:

```js
let date180DaysAgo = new Date(new Date().getTime() - 180 * 24 * 60 * 60 * 1000);
console.log(date180DaysAgo);
```

180 in the constructor is number of days to subtract, `180 * 24 * 60 * 60 * 1000` gives number of milliseconds within 180 days