年月日大写日期怎么写

人气:242 ℃/2023-07-14 05:43:41

即是数字用大写数字来写,不用阿拉伯数字,而是用零、壹、贰、叁、肆、伍、陆、柒、捌、玖、拾,比如2007年12月31日,可以写为贰零零柒年拾贰月叁拾壹日。

大写日期应该是使用零、壹、贰、叁、肆、伍、陆、柒、捌、玖、拾,而不是使用汉字数字一、二、三、四、五、六......

大写数字通常出现在银行的收据中,这样可以有效地防止数字被涂改而伪造收据。

我国从古代就开始使用大写数字,并一直沿用至今,虽然有些账目会使用阿拉伯数字,但是重要的支票汇款、股票、国债等都是使用大写数字。

年月日大写日期转换器

JS普通日期转大写

getChineseDate(dateString) { const date = new Date(dateString); const year = date.getFullYear(); const month = date.getMonth() 1; const day = date.getDate(); const chineseNumbers = ["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九"]; const chineseMonthNumbers=["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九","十","十一","十二"]; const chineseDayNumbers = ["〇", "一", "二", "三", "四", "五", "六", "七", "八", "九","十","十一","十二","十三","十四","十五", "十六","十七","十八","十九","二十","二十一","二十二","二十三","二十四","二十五","二十六","二十七","二十八","二十九","三十","三十一"]; const chineseYear = year.toString().split("").map(char => chineseNumbers[parseInt(char)]).join(""); const chineseMonth = chineseMonthNumbers[month]; const chineseDay = chineseDayNumbers[day]; const chineseDate = `${chineseYear}年${chineseMonth}月${chineseDay}日`; return chineseDate; } }, this.getChineseDate (this.parseDate(new Date())) 2023-2-21 ==> 二〇二三年二月二十一日

推荐

首页/电脑版/网名
© 2025 NiBaKu.Com All Rights Reserved.