date_get_weekday

Returns the weekday corresponding to the datetime.

Syntax:

date_get_weekday(date);


Argument Description
date The date to check.


Returns: Real


Description

This function returns the week day value of the given datetime. This will be a value from 0 to 6.


Example:

myweekday = date_get_weekday(date_current_datetime());

This would set "myweekday" to the current weekday.


Back: Date And Time
Next: date_get_year
© Copyright YoYo Games Ltd. 2018 All Rights Reserved