• 2021-04-14
    ①返回当前日期是今年的第几天;②返回当前日期的年份;③返回当前日期是今年的第几个月;④返回当前日期是周几;⑤返回当前日期是周几;⑥返回当前日期是本月第几日;⑦返回当前日期是今年第几周
  • print datepart(y,getdate()) --返回当前日期是今年的第几天 print datepart(yy,getdate()) --返回当前日期的年份 print datepart(m,getdate()) --返回当前日期是今年的第几个月 print datepart(w,getdate())-1 --返回当前日期是周几 print datepart(dw,getdate())-1 --返回当前日期是周几 print datepart(d,getdate()) --返回当前日期是本月第几日 print datepart(ww,getdate()) --返回当前日期是今年第几周

    内容

    • 0

      =Year(Date())返回( ) A: 当前年份 B: 当前日期 C: 当前年月 D: 当前年月日

    • 1

      函数Year(today()返回() A: 当前年份 B: 当前日期 C: 当前年月 D: 当前年月日

    • 2

      日期函数Date()返回当前系统日期。 A: 正确 B: 错误

    • 3

      在JavaScript中,返回当前日期的方法是________.

    • 4

      想要返回当前系统的日期,可用 函数?