How to Insert system date with other data with Angualr in mvc

here is js code code for insert data…

$scope.saveTask = function () {
        $scope.submit = 'Saving..'
            method: 'POST',
            url: '',
            data: $scope.MyData


<input type="text" ng-model="MyData.DataDesc" name="" />
<input type="text" ng-model="MyData.DataDate" name="" />

How can put system date on “MyData.DataDate”

Just assign the value,

 $scope.MyData.DataDate =  new Date();

As @sajeetharan, already given the answer. Date Object creates instance according to system setting.

If no arguments are provided, the constructor creates a JavaScript Date object for the current date and time according to system settings.

See here for more detail: