dayNum

dayNum, function

def const pure dayNum(d: date): number

Returns the day of month for d, in the range 1 to 31.

Examples

table T = with
  [| as D |]
  [| date(2020, 8, 1) |]
  [| date(2020, 8, 15) |]
  [| date(2020, 8, 31) |]

show table "Day numbers" with
  T.D
  dayNum(T.D) as "Day"

This produces the following table:

D Day
2020-08-01 1
2020-08-15 15
2020-08-31 31

See also

User Contributed Notes
0 notes + add a note