On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/ DateTime Functions/dayofmonth

dayofmonth ​

The dayofmonth function returns the integer number representing the day number of the given month.

Syntax ​

dayofmonth( Date )

Arguments ​

Returns ​

The day number of the given month.

Example ​

This example returns 14:

print dayofmonth(datetime(2015-12-14))