年齢を出生年(+万歳、国内年齢)に換算
2496 ワード
ここでrow生年を配布する.
ex) 1999-03-08
/国内年齢/
ex) 1999-03-08
/国内年齢/
const today = new Date();
const birthDate = new Date(row.birth);
let birthToAge =
today.getFullYear() - birthDate.getFullYear() + 1;
/万年/const today = new Date();
const birthDate = new Date(row.birth);
let birthToAge =
today.getFullYear() - birthDate.getFullYear();
Reference
この問題について(年齢を出生年(+万歳、国内年齢)に換算), 我々は、より多くの情報をここで見つけました https://velog.io/@rhftnqls/태어난-년도로-나이환산하기-만나이-국내나이テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol