댓글 검색 목록

[javascript] 날짜에서 년 월 일시 분 초와 밀리 초 추출

페이지 정보

작성자 운영자 작성일 20-05-10 17:35 조회 623 댓글 0
// `date` is a `Date` object
const extract = date => date.toISOString().split(/[^0-9]/).slice(0, -1);

// `extract` is an array of [year, month, day, hour, minute, second, millisecond]

댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.