current_month

Returns the current month.

Syntax:

GML Code Example

current_month;


Returns: Real


Description

This read only variable returns the current month as a numeric value where 1 is January and 12 is December.


Example:

GML Code Example

draw_text((32, 32, "Today is " + string(current_day) + "/" + string (current_month) + "/" + string(current_year) +".");

The above code will draw the day, month and year.





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