Autogenerate Week number from selected Date in xlsForm collect

Please see if this thread solves your problem: