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 Formula Help

Status
Not open for further replies.

wanzek

Technical User
Mar 8, 2010
58
US
I need a formula to say:

if the effective date is between day 2 and the last day of the month to put the next months date

Not sure how to get a formula to reference days of the month.

Thank you!
 
This should do the trick:

if day({Orders.Order Date}) = 1 then {Orders.Order Date}
else
DateAdd ('m' , 1 , {Orders.Order Date} - day({Orders.Order Date}) + 1)


Check out Ken Hamady's site - there are a lot of useful formulas there, so you don't have to remember them all.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top