dayOfWeek

Get the day-of-week.

Signature

dayOfWeek: Number

Description

Get the day-of-week.

Return value

Type Description

Number

Day-of-week field of the Time instance:
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
7 = Sunday

Examples

Time('2099-02-10T12:01:19.000Z').dayOfWeek
2

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!