Hello,
I have a field date and I need to get the week the date belongs.
example: date= DD/MM/YY
If I have 07/01/02 I need a formula that gives me the value 2, because that date belongs to the second week.
How can I do it?
If 7/1 is the second week, this means that some date in late June is your start of year???
My first suggestion her is to ALWAYS build a period table in the database.
This table holds all dates with various attributes, such as workweek, fiscal workweek, weekday, holiday, month, etc. Now you can always join to it, this is a standard practice in a data warehouse.
Anyway, from within Crystal, you might use the datepart function:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.