day()

Extracts the day of the month from a given timestamp.

Syntax

day(timestamp)

Parameters

Parameter Type Description
timestamp Number Timestamp in seconds.

Return Value

Examples

dt = datetime();  // returns 1740923491.09200001
day(dt);          // returns 2

See also

date
datetime
year
month
day
hour
minute
second
millisec