I'm using ngx-countdown npm package to show a countdown on my webpage.
I want to set the leftTime attribute according to data coming from the backend, I tried below way, but it does not work,

in my html,

 `<countdown #cd [config]="notifyConfig" (event)="handleEvent($event)"></countdown>`

in my component.ts

`notifyConfig: CountdownConfig = { leftTime: this.consultationDurationInSeconds, notify: [120], format: 'mm:ss', };`

`this.consultationDurationInSeconds = data.ConsultationDuration.Minutes*60;`

My data object has the minute which I want to bind to leftTime attribute. but when I try this way it shows an error saying,

\*\* Unable to convert "Invalid Date" into a date \*\*,

can anyone help me with this issue?