Skip to content
Prev 164412 / 398503 Next

getting ISO week

strftime(x, "%V")

E.g.

strftime(as.POSIXlt(Sys.Date()), "%V")

is "50", and you might want as.numeric() on it.

Note that this is OS-dependent, and AFAIR Windows does not have it.
On Thu, 11 Dec 2008, Gustaf Rydevik wrote: