【单选题】以下______语句把日期对象rightnow的星期号赋给变量weekday。
A. var weekday = rightnow.getDate(); B. var weekday = rightnow.getDay(); C. var weekday = rightnow.getWeek(); D. var weekday = rightnow.getWeekday();
A. var weekday = rightnow.getDate(); B. var weekday = rightnow.getDay(); C. var weekday = rightnow.getWeek(); D. var weekday = rightnow.getWeekday();
举一反三
- 返回今天是星期几的函数表达式是() A: Weekday(day()) B: Weekday(#2011-6-6#) C: Day(date()) D: Weekday(date())
- 如果将星期一视为一周的开始,我们想知道今天星期几,正确的公式是 A: WEEKDAY(TODAY()) B: WEEKDAY(TODAY(),1) C: WEEKDAY(TODAY(),2) D: WEEKDAY(TODAY,2)
- 日期型数据2019/9/10录入在D3单元格中,返回结果是“星期二”的是( )。 A: =WEEKDAY(D3,1) B: =TEXT(WEEKDAY(D3,1),"AAAA") C: =TEXT(WEEKDAY(D3,1),"DDDD") D: =WEEKDAY(D3,2)
- 若有如下定义,则( ) 是不正确的语句。 enum weekday{ mon,tue,wed,thu,fri } workday; A: workday=(enum weekday)3; B: workday=(enum weekday)(4-2); C: workday=3; D: workday=thu;
- 设有以下枚举说明语句:enum weekday{Mon=1,Tues,Wed,Thurs,Fri,Sat,Sun=0}week;下面那一条赋值语句是错误的? A: week=weekday(1); B: week=1; C: week=Mon; D: week=(weekday)1;