You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
312 B
12 lines
312 B
// 2019年1月22日
|
|
function formatYYMMDDDate(date_str) {
|
|
const date1 = Number(date_str)*1000
|
|
let date = new Date(date1);
|
|
let year = date.getFullYear();
|
|
let month = date.getMonth() + 1;
|
|
let day = date.getDate();
|
|
return `${year}年${month}月${day}日`;
|
|
}
|
|
export {
|
|
formatYYMMDDDate
|
|
};
|
|
|