|
This function returns the calender week for a date as a value from 0 to 53. "Monday" is considered as the first day of the week. |
||||||
Syntax: |
|||||||
{INT_VAR}= year_week({DAT_EXPR}) | |||||||
I/O parameters:
|
|||||||
Return value: |
|||||||
|
|||||||
Example: |
|||||||
Declaration of Variables | |||||||
10 DOCU_INT_1 = year_week(date()) 20 DOCU_STRING_1 = make_str(DOCU_INT_1) 30 put(strcat(DOCU_STRING_1,". Week")) |
|||||||
Result: (date() returns: 12. May 2000) | |||||||
![]() |
|||||||
![]() |
Functions and commands: Date and Time |