Hi, before starting to writing my own function, I was wondering if somebody among the readers of this list has already written a function to find out the week number of a given date and is willing to share? I haven't found anything on xqueryfunctions.com, for example. thanks, Jakob.