[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());
}

댓글

이 블로그의 인기 게시물

Spring Batch - JobParameters Default Value 만들기

Hsqldb Server 재기동 시 오류