OK so for example, today is Tuesday, Feb 02. Well the equivalent “Tuesday” from last year was on Feb 03.
How can I find this out programmatically?
Thanks!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just my two cents. I don’t like the idea, that the second answer assumes 52 weeks in a year, it will work for a single year, but is a solution to only this exact problem – eg. if you want to check the same thing moving back 10 years it won’t work. I’d do it like this:
returns: