Baseline Widely available
getDay()
ë©ìëë 주ì´ì§ ë ì§ì íì§ ìê° ê¸°ì¤ ìì¼ì ë°íí©ëë¤. 0ì ì¼ìì¼ì ëíë
ëë¤. íì¬ì ì¼ì ë°ííë ¤ë©´ Date.prototype.getDate()
를 ì¬ì©íì¸ì.
const birthday = new Date("August 19, 1975 23:15:30");
const day1 = birthday.getDay();
// Sunday - Saturday : 0 - 6
console.log(day1);
// Expected output: 2
구문 ë°í ê°
íì§ ìê°ì ë°ë¼, 주ì´ì§ ë ì§ì ìì¼ì í´ë¹íë 0 ì´ì 6 ì´íì ì ì. (ì¼ìì¼ì 0, ììì¼ì 1, íìì¼ì 2, ...)
ìì getDay()
ì¬ì©í기
1995ë
12ì 25ì¼ì ììì¼ì
ëë¤. ë°ë¼ì ìë ì½ëì ë ë²ì§¸ ëª
ë ¹ë¬¸ì Xmas95
ì ê°ì 기ë°íì¬ weekday
ì 1ì í ë¹í©ëë¤.
var Xmas95 = new Date("December 25, 1995 23:15:30");
var weekday = Xmas95.getDay();
console.log(weekday); // 1
ëª ì¸ ë¸ë¼ì°ì í¸íì± ê°ì´ ë³´ê¸°ì°¸ê³ : ì°¸ê³ : íìíë¤ë©´, ìì¼ì ì´ë¦(
"ììì¼"
ë±)ìIntl.DateTimeFormat
ê³¼options
매ê°ë³ì를 ì¬ì©í´ ì»ì ì ììµëë¤. ì´ ë°©ë²ì ì¬ì©íë©´ êµì íë ë ì¬ìì§ëë¤.```js var options = { weekday: 'long'}; console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95)); // Monday console.log(new Intl.DateTimeFormat('ko-KR', options).format(Xmas95)); // ììì¼
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4