I get this error Supplied parameters do not match any signature of call target. when I try to do this in my TypeScript file in Angular2.
console.log(Date(this.field.sowing_date));
If I execute the same thing in the Chrome Debugger I don't get any problem.
Do you know what is?
I am using:
"@angular/core": "^2.4.0" "@angular/cli": "^1.0.0-rc.4", "@angular/compiler-cli": "^2.4.0",
Datecalled as a function without an argument simply ignores it. That is why TypeScript is warning you that something is wrong. You have a bug. The code will always return a string representation of the current Date and Timenew Date(this.field.sowing_date)?