Nday

nday returns the number of days between the [1/1/1600] and the date given as the argument.

Syntax

   nday(EXP_DATE)
  • EXP_DATE is an expression returning a date.

Examples

  # How many days since 1/1/1600 ?
  Local Integer N_DAY1, N_DAY2
  N_DAY1 = nday(date$)
  N_DAY2 = date$-[1/1/1600]
  # N_DAY1 and N_DAY2 have the same value

Description

nday transforms a date in a number of days. The type of result is Integer.

nday(EXPR_DATE) can be replaced by EXPR_DATE-[1/1/1600].

Associated errors

Error code Description
10 The argument is not a date.
56 The date is incorrect.

See also

day, year, month,month$, day$, gdat$, dayn, nday$, date$, datesyst, Date.