前端 js
const date = new Date();
options = {
year: "numeric",
month: "numeric",
day: "numeric",
weekday: 'short',
};
console.log(new Intl.DateTimeFormat("ja",options).format(date));
后端C#转换成DateTime
var str = "2023/12/13(水)";
DateTime dt = DateTime.ParseExact(str, "yyyy/MM/dd(ddd)", CultureInfo.GetCultureInfo("ja-JP"));
Console.WriteLine(dt.ToString());