Date.EndOfMonth
Atgriež mēneša beigas.
Syntax
Date.EndOfMonth(
dateTime as any
) as any
Remarks
Atgriež mēneša beigas vērtībā, kas satur dateTime.
dateTime:date,datetimevaidatetimezonevērtību, no kuras tiek aprēķinātas mēneša beigas.
Examples
Example #1
Iegūstiet mēneša beigas vērtībai 14.05.2011.
Date.EndOfMonth(#date(2011, 5, 14))
Result:
#date(2011, 5, 31)
Example #2
Iegūstiet mēneša beigas vērtībai 17.05.2011. plkst. 17:00:00 -7:00.
Date.EndOfMonth(#datetimezone(2011, 5, 17, 5, 0, 0, -7, 0))
Result:
#datetimezone(2011, 5, 31, 23, 59, 59.9999999, -7, 0)
Category
Date