May 12, 2010 #1 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!
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!
May 12, 2010 #2 briangriffin Programmer Nov 6, 2008 878 US 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. Upvote 0 Downvote
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.