当前位置: 移动技术网 > IT编程>开发语言>.net > ASP学习:VBScript WeekdayName 函数

ASP学习:VBScript WeekdayName 函数

2018年10月17日  | 移动技术网IT编程  | 我要评论

滦南三中,谁是李世民下载,斗鱼主播米希尔

the weekdayname function returns the weekday name of a specified day of the week.
weekdayname 函数可以返回一个字符串,表示星期中指定的某一天

语法

weekdayname(weekday[,abbreviate[,firstdayofweek]])

参数 描述
weekday required. the number of the weekday
必选项。星期中某天的数值定义。各天的数值定义取决于 firstdayofweek 参数设置。
abbreviate optional. a boolean value that indicates if the weekday name is to be abbreviated
可选项。boolean 值,指明是否缩写表示星期各天的名称。如果省略, 默认值为 false,即不缩写星期各天的名称。
firstdayofweek optional. specifies the first day of the week.
可选项。指明星期第一天的数值

can take the following values:
可以使用下面这些值:

  • 0 = vbusesystemdayofweek - use national language support (nls) api setting
  • 1 = vbsunday - 星期日(默认)
  • 2 = vbmonday - 星期一
  • 3 = vbtuesday - 星期二
  • 4 = vbwednesday - 星期三
  • 5 = vbthursday - 星期四
  • 6 = vbfriday - 星期五
  • 7 = vbsaturday - 星期六

实例 1

document.write(weekdayname(3))
输出:
monday

实例 2

document.write(date & "<br />")
document.write(weekday(date) & "<br />")
document.write(weekdayname(weekday(date)))
输出:
10/22/2007
2
monday

实例 3

document.write(date & "<br />")
document.write(weekday(date) & "<br />")
document.write(weekdayname(weekday(date),true))
输出:
10/22/2007
2
mon

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网