Returns the number of days in the month of the given datetime.


GML Code Example


Argument Description
date The date to use.

Returns: Real


With this function you can get the number of days that the given month has, either 28, 29, 30 or 31.


GML Code Example

days = date_days_in_month(date_current_datetime());

This would set "days" to the number of days in the current month.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here