weekday(a)


Returns the weekday of a Ddate or Timestamp in parameter a as number. The numbers are representing the following weekdays.

Value

Weekday

0

Sunday

1

Monday

2

Tuesday

3

Wednesday

4

Thursday

5

Friday

6

Saturday

Description of Parameters

Parameter

Description

a

Date.

Examples

Parameter a

Result

2005-02-07 08:20:00

1

2005-02-05

6