date_get_week

This function returns the week of the given datetime value within the year.

 

Syntax:

date_get_week(date);

ArgumentTypeDescription
dateDatetimeThe datetime to check.

 

Returns:

Real

 

Example:

myweek = date_get_week(date_current_datetime());

This would set myweek to the current week.