G
Guest
I am using the datepart function to create a number that consist of year and
week number. I have however problems since January 1 and 2 return year 2005
and week 53. I have tried the different datepart parameters, but with out
success:
I use:
CreateWeek:
DatePart("yyyy";[dbo_Invhead]![Created];"2";"2")*100+DatePart("ww";[dbo_Invhead]![Created];"2";"2")
01-jan-2005 and 02-jan-2005 returns 200553, but I want it to return 200453
like 31-dec-2004 does.
Any ideas on how to solve this.
Thank you
Peter
week number. I have however problems since January 1 and 2 return year 2005
and week 53. I have tried the different datepart parameters, but with out
success:
I use:
CreateWeek:
DatePart("yyyy";[dbo_Invhead]![Created];"2";"2")*100+DatePart("ww";[dbo_Invhead]![Created];"2";"2")
01-jan-2005 and 02-jan-2005 returns 200553, but I want it to return 200453
like 31-dec-2004 does.
Any ideas on how to solve this.
Thank you
Peter