[javascript] date object -> YYYYMMDD
_dateToYYYYMMDD : function(objDate)
{
return objDate.getFullYear() +
((objDate.getMonth() + 1 < 10)?
('0'+(objDate.getMonth() + 1 - 0)):
(objDate.getMonth() + 1 - 0)) +
((objDate.getDate() < 10)?
('0'+objDate.getDate()):
objDate.getDate());
}
댓글
댓글 쓰기