DateTime variable -> week number

I need to get the week number (from 1 to 52).. it should be simple!

1. dateTime don't have week format
2. in custom functions:
int x = day / 7 or int.parse(day/7) does not work (int can't take double value).
math.floor does not exist in math library.


any ideas?

1
1 reply