It is awkward, but, you can use a combination of GetCurrentDate() and
GetUnixFromDate to do things.
Something like this:
// get current date
date$=GetCurrentDate()
// grab the year and convert
thisyear = Val(Left(date$,4))
// get Unix time for today
unixnow = GetUnixFromDate(thisyear,Val(Mid(date$,6,2)),Val(Right(date$,2)),0,0,0)
// get Unix Time for start of year
unixyearstart = GetUnixFromDate(thisyear,1,1,0,0,0)
// calculate the week
// 604800 is the number of seconds in a week
weeks = Floor((unixnow-unixyearstart)/604800)
// figure out if it is odd or even
weekodd = Mod(weeks,2)
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master