DateTime.day()

Returns the day of the month (1-31) for a given date
DateTime.day(time:int)

Parameters

Name Type Действие Значение по умолчанию
time int Datetime as number of seconds elapsed since midnight (00:00:00), January 1, 1970

Return value

Day of month (1 - 31) of the specified date

Description

Used in the method onUpdate

Example

let currentDay = DateTime.day(DateTime.current());