date_date_string

With this function you can create a string containing the given date, formatted as day/month/year.

 

Syntax:

date_date_string(date);

ArgumentTypeDescription
dateDatetimeThe date to use.

 

Returns:

String

 

Example:

str = date_date_string(date_current_datetime());
draw_text(32, 32, str);

This would set "str" to hold a formatted string of the current date and time as shown by the system.