current_day

Returns the current day.

Syntax:

GML Code Example

current_day;


Returns: Real


Description

This read only variable will return the day as a value from 1 to 31, depending on the month.


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