Author: abdulrafi
Posted: Mon Nov 28, 2016 10:17 am (GMT 5.5)
Hi Robert,
To answer your questions,
Questions you did not answer in your post include:
- Will the week number always be for this year? - no it changes. it can be for different years.
- How is the week number determined -- from Sunday? from Monday? from some other day? - I do have a file where the week number is populated. This serves as an input for me.
- What happens when the year changes during the week (for example, in 2019 the first of January is on a Tuesday)? - In this case I should hold the value as 31/12/2018.
- What if the week number comes in as something greater than 53? - I do have a file as input which holds only valid values. So nothing would be greater than 53.
Sorry that I did not understand your point, "convert the date for the Monday of week 1 to integer using the intrinsic function, add 7 times the week number to that value, then convert back to a date using the intrinsic function".
_________________
Thanks,
Abdul Rafi
Posted: Mon Nov 28, 2016 10:17 am (GMT 5.5)
Hi Robert,
To answer your questions,
Questions you did not answer in your post include:
- Will the week number always be for this year? - no it changes. it can be for different years.
- How is the week number determined -- from Sunday? from Monday? from some other day? - I do have a file where the week number is populated. This serves as an input for me.
- What happens when the year changes during the week (for example, in 2019 the first of January is on a Tuesday)? - In this case I should hold the value as 31/12/2018.
- What if the week number comes in as something greater than 53? - I do have a file as input which holds only valid values. So nothing would be greater than 53.
Sorry that I did not understand your point, "convert the date for the Monday of week 1 to integer using the intrinsic function, add 7 times the week number to that value, then convert back to a date using the intrinsic function".
_________________
Thanks,
Abdul Rafi