chanman525
IS-IT--Management
Another question concerning dates.
I have to find the Saturday and Friday from 2 weeks out, last week, this week, next week and the following.
I'm looking at writing code for each week to say
if date() = Monday then
date -2
but I'm having trouble displaying it in the textbox (txt2WeeksAgoSaturday) in my form.
My first question is, is there an easier way to find Saturday's. This is something that will be run everyday, so I can't just put -1 or -4 depending on what day they run. Unless I have to write code for each day of the week.
My second question is, how do I get this to show up in my textbox?
I have to find the Saturday and Friday from 2 weeks out, last week, this week, next week and the following.
I'm looking at writing code for each week to say
if date() = Monday then
date -2
but I'm having trouble displaying it in the textbox (txt2WeeksAgoSaturday) in my form.
My first question is, is there an easier way to find Saturday's. This is something that will be run everyday, so I can't just put -1 or -4 depending on what day they run. Unless I have to write code for each day of the week.
My second question is, how do I get this to show up in my textbox?