jquery 달력 스크립트를 작성 중입니다. 스크립트에서 행을 선택하면 날짜 객체가 콜백으로 제공됩니다. 여기날짜 개체 변환/서식 지정
select: function(start, end, allDay) {
$("#datepicker_add").val(start);
$("#datepicker_add_end").val(end);
calendar.fullCalendar('renderEvent',
{
title: title,
start: start,
end: end,
allDay: allDay
},
true // make the event "stick"
);
calendar.fullCalendar('unselect');
},
는 start
및 end
객체가 그런 것을 Wed Aug 22 2012 00:00:00 GMT+0300 (EEST)
는 내가 원하는 내가 그렇게 할 수있는 방법 Y-m-d
으로이 형식을 무엇입니까?
가능한 중복 http://stackoverflow.com/questions/1056728/formatting-a-date-in-javascript –