(3-1)클립 조각, 공백 5프레임 이하 무시하도록 변경
This commit is contained in:
12
getToday.js
Normal file
12
getToday.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const getToday = () => {
|
||||
const now = new Date();
|
||||
const yy = String(now.getFullYear()).slice(2); // 연도 끝 두 자리
|
||||
const mm = String(now.getMonth() + 1).padStart(2, "0"); // 월 (01~12)
|
||||
const dd = String(now.getDate()).padStart(2, "0"); // 일 (01~31)
|
||||
return `${yy}${mm}${dd}`;
|
||||
};
|
||||
|
||||
// 실행
|
||||
console.log(getToday()); // 예: 240217 (2024년 2월 17일)
|
||||
|
||||
module.exports = getToday;
|
||||
Reference in New Issue
Block a user