Dayofmonth(Datetime) not working

Dayofmonth(Datetime) not working

I am trying to set up a formula that returns the day of the month. For example, 5/20/2017 would return "20". I have been trying to use  Dayofmonth(Datetime), but it does not work.

Please help.

Thanks!

MG