FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
smallbasic.github.io/reference/579.html at master · smallbasic/smallbasic.github.io · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
smallbasic
/
smallbasic.github.io
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
smallbasic.github.io
/
reference
/
579.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
91 lines (91 loc) · 4.98 KB
Breadcrumbs
smallbasic.github.io
/
reference
/
579.html
Copy path
File metadata and controls
91 lines (91 loc) · 4.98 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html
>
<
html
lang
="
en
"
>
<
head
>
<
meta
charset
="
utf-8
"
>
<
meta
http-equiv
="
X-UA-Compatible
"
content
="
IE=edge
"
>
<
meta
name
="
viewport
"
content
="
width=device-width, initial-scale=1
"
>
<
title
>
SmallBASIC | WEEKDAY
</
title
>
<
meta
name
="
description
"
content
="
Returns the day of the week (0 = Sunday).
"
>
<
link
rel
="
canonical
"
href
="
579
"
>
<
link
rel
="
keywords
"
href
="
WEEKDAY (dmy| (d,m,y)| julian_date)
"
>
<
link
rel
="
stylesheet
"
href
="
/css/style.css
"
>
<
link
rel
="
icon
"
type
="
image/png
"
href
="
/images/sb-desktop-32x32.png
"
>
<
script
src
="
/clipboard.js
"
>
</
script
>
</
head
>
<
body
>
<
button
onclick
="
topFunction()
"
id
="
BackToTopBtn
"
title
="
Go to top
"
>
⯅
</
button
>
<
script
src
="
/backtotop.js
"
>
</
script
>
<
div
class
="
wrapAll clearfix
"
>
<
nav
class
="
navigation
"
>
<
div
class
="
logo
"
>
<
a
href
="
/
"
>
<
img
src
='
/images/sb-logo.png?v=2
'
alt
="
logo
"
>
</
a
>
</
div
>
<
div
class
="
navlinks
"
>
<
a
href
="
/pages/download.html
"
>
Download
</
a
>
<
a
href
="
/pages/news.html
"
>
News
</
a
>
<
a
href
="
/pages/community.html
"
>
Community
</
a
>
<
a
href
="
/pages/articles.html
"
>
Resources
</
a
>
<
a
class
='
active
'
href
="
/pages/reference.html
"
>
Language Reference
</
a
>
<
a
href
="
/pages/guide.html
"
>
SmallBASIC Manual
</
a
>
</
div
>
</
nav
>
<
div
class
="
mainsection
"
>
<
div
class
="
tabs clearfix
"
>
<
div
class
="
tabsRight
"
>
<
a
target
="
_github
"
href
="
https://github.com/smallbasic/smallbasic.github.io/blob/master/_build/reference/579-date-weekday.markdown
"
>
Edit
</
a
>
<
a
target
="
_github
"
href
="
https://github.com/smallbasic/smallbasic.github.io/commits/master/_build/reference/579-date-weekday.markdown
"
>
History
</
a
>
</
div
>
</
div
>
<
div
class
="
article
"
>
<
h1
>
WEEKDAY
</
h1
>
<
blockquote
>
n = WEEKDAY (dmy | (d,m,y) | julian_date)
</
blockquote
>
<
div
class
="
siteSub
"
>
<
p
>
<
a
href
="
/
"
>
Home
</
a
>
>
<
a
href
="
/pages/reference.html
"
>
Reference
</
a
>
>
<
a
href
="
/pages/date.html
"
>
Date
</
a
>
</
p
>
</
div
>
<
p
>
Returns the day of the week as a number between
<
code
>
0
</
code
>
and
<
code
>
6
</
code
>
. Sunday is
<
code
>
0
</
code
>
. WEEKDAY accepts a string
<
code
>
dmy
</
code
>
as returned by DATE, a number
<
code
>
julian_date
</
code
>
as returned by JULIAN or a date given by the three numbers
<
code
>
d
</
code
>
for day,
<
code
>
m
</
code
>
for month and
<
code
>
y
</
code
>
for
year.
</
p
>
<
h3
id
="
example-1
"
>
Example 1
</
h3
>
<
div
class
="
sourceCode
"
id
="
cb1
"
>
<
pre
class
="
sourceCode smallbasic
"
>
<
code
class
="
sourceCode smallbasic
"
>
<
span
id
="
cb1-1
"
>
<
a
href
="
#cb1-1
"
aria-hidden
="
true
"
tabindex
="
-1
"
>
</
a
>
<
span
class
="
kw
"
>
PRINT
</
span
>
<
span
class
="
fu
"
>
WeekDay
</
span
>
(DATE)
<
span
class
="
co
"
>
' Output: 3 -> Wednesday
</
span
>
</
span
>
<
span
id
="
cb1-2
"
>
<
a
href
="
#cb1-2
"
aria-hidden
="
true
"
tabindex
="
-1
"
>
</
a
>
<
span
class
="
kw
"
>
PRINT
</
span
>
<
span
class
="
fu
"
>
WeekDay
</
span
>
(
<
span
class
="
fu
"
>
Julian
</
span
>
(
<
span
class
="
dv
"
>
31
</
span
>
,
<
span
class
="
dv
"
>
12
</
span
>
,
<
span
class
="
dv
"
>
2023
</
span
>
))
<
span
class
="
co
"
>
' Output: 0 -> Sunday
</
span
>
</
span
>
<
span
id
="
cb1-3
"
>
<
a
href
="
#cb1-3
"
aria-hidden
="
true
"
tabindex
="
-1
"
>
</
a
>
<
span
class
="
kw
"
>
PRINT
</
span
>
<
span
class
="
fu
"
>
WeekDay
</
span
>
(
<
span
class
="
dv
"
>
31
</
span
>
,
<
span
class
="
dv
"
>
12
</
span
>
,
<
span
class
="
dv
"
>
2023
</
span
>
)
<
span
class
="
co
"
>
' Output: 0 -> Sunday
</
span
>
</
span
>
</
code
>
</
pre
>
</
div
>
<
h3
id
="
example-2
"
>
Example 2
</
h3
>
<
div
class
="
sourceCode
"
id
="
cb2
"
>
<
pre
class
="
sourceCode smallbasic
"
>
<
code
class
="
sourceCode smallbasic
"
>
<
span
id
="
cb2-1
"
>
<
a
href
="
#cb2-1
"
aria-hidden
="
true
"
tabindex
="
-1
"
>
</
a
>
SPLIT
<
span
class
="
st
"
>
"Sun Mon Tue Wed Thu Fri Sat"
</
span
>
,
<
span
class
="
st
"
>
" "
</
span
>
, wd
</
span
>
<
span
id
="
cb2-2
"
>
<
a
href
="
#cb2-2
"
aria-hidden
="
true
"
tabindex
="
-1
"
>
</
a
>
<
span
class
="
kw
"
>
print
</
span
>
<
span
class
="
st
"
>
"Today is "
</
span
>
+ wd(
<
span
class
="
fu
"
>
WEEKDAY
</
span
>
(DATE)) +
<
span
class
="
st
"
>
" "
</
span
>
+ DATE
</
span
>
<
span
id
="
cb2-3
"
>
<
a
href
="
#cb2-3
"
aria-hidden
="
true
"
tabindex
="
-1
"
>
</
a
>
<
span
class
="
co
"
>
' Output: Today is Wed 13/09/2023
</
span
>
</
span
>
</
code
>
</
pre
>
</
div
>
<
div
class
="
lavenderBox
"
>
<
div
class
="
header
"
>
Date
</
div
>
<
div
class
="
linklist
"
>
<
a
href
="
/reference/575.html
"
>
DATE
</
a
>
<
a
href
="
/reference/573.html
"
>
DATEDMY
</
a
>
<
a
href
="
/reference/576.html
"
>
DATEFMT
</
a
>
<
a
href
="
/reference/577.html
"
>
JULIAN
</
a
>
<
a
href
="
/reference/1448.html
"
>
TICKS
</
a
>
<
a
href
="
/reference/578.html
"
>
TIME
</
a
>
<
a
href
="
/reference/574.html
"
>
TIMEHMS
</
a
>
<
a
href
="
/reference/1449.html
"
>
TIMER
</
a
>
<
a
href
="
/reference/1450.html
"
>
TIMESTAMP
</
a
>
<
a
href
="
/reference/579.html
"
>
<
strong
>
WEEKDAY
</
strong
>
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
="
pagefooter
"
>
This page was last edited on Wed, 13 Sep 2023 15:57:51 +0200
|
<
a
href
="
https://en.wikipedia.org/wiki/Markdown
"
target
="
_blank
"
rel
="
nofollow
"
>
Markdown
</
a
>
processed with
<
a
href
="
https://pandoc.org/MANUAL.html#pandocs-markdown
"
target
="
_blank
"
rel
="
nofollow
"
>
pandoc 3.1.12.1
</
a
>
</
div
>
</
div
>
</
div
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL