Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

formart japanese date in js

var d = new Date();
var lang = 'ja',
    year = d.toLocaleString(lang, {year:'numeric'}),
    month = d.toLocaleString(lang, {month:'short'}),
    day = d.toLocaleString(lang, {day:'numeric'}),
    dayName = d.toLocaleString(lang, {weekday:'long'});

console.log(
  `${year}年 ${month}月 ${day}日 ${dayName}`
);
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #formart #japanese #date #js
ADD COMMENT
Topic
Name
9+8 =