on 10-21-2016 9:38 PM
If {Test Completion ETA} is not null then calculate the date for the next Friday and insert it into {Prod Deployment ETA}.
Anyone have any ideas how I might be able to do this?
Thanks!
Hi Scot,
Try this:
If {Test Completion ETA} <> Date (0, 0, 0) Then
{Test Completion ETA} + (6 - DayOfWeek ({Test Completion ETA}))
Else Date (0, 0, 0);
Date (0, 0, 0) is a NULL date.
Crystal starts the week on Sunday so Friday is actually day 6. You can check this by using DayOfWeek and use a Friday date. So now we can take the {Test Completion ETA} and add the difference between 6 and the DayOfWeek to get the next Friday.
Good luck,
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Scot,
Hit the F1 key in CR Designer and then search for "friday" you'll get a few listings and this one may help you:
DateSerial (year, month, day)
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.