Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Formual to return Specific date of the Week

Status
Not open for further replies.
Mar 20, 2009
102
US
I have the below formual:

If DayOfWeek({Command.weekending}) = 2 Then
{Command.weekending}-6

I am trying to return a date of:

2009/8/17, but it returns nothing? weekending is a datetime field, does that matter?

Please help!!

 
I figured out the reason I am not getting any data is becuase the date of "weekending" is 8-23-2009 which is a Sunday. So what I need to do is just get the day of the week and based on that day, then do my subtraction from the weekending to get it to display the correct date? Any suggestions?

Thanks a bunch!!
 
Please explain your solution so others can benefit.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top