私は AngularJS で dhtmlxScheduler を使用しており、Date オブジェクトを文字列に変換する方法を探しています。次の app.js コードの終了日ではなく、開始日の変換のみに関心があります
'use strict';
/* App Module */
var app = angular.module('schedulerApp', [ ]);
app.controller('MainSchedulerCtrl', function($scope) {
$scope.events = [
{
id:1, text:"Task A-12458",
start_date: new Date(2013, 3, 12), // How would I store this date in a string?
end_date: new Date(2013, 3, 14) },
];
$scope.scheduler = { date : new Date(2013,10,1) };
});
何か案は?