Date Calculation
-
Hi I am trying to return a value when a date falls between 2 other dates. The purpose of this is so I can assign a discount by multiplying another number by the result. I have tried this so far, but I am not getting any values returned. Can you tell me what I am doing wrong please?
(function(){
if(fieldname3 < ‘2022-08-01’ ) return 1;
if(fieldname3 > ‘2022-08-30’ ) return 1;
if(fieldname3 >= ‘2022-08-01’ and fieldname3 <= ‘2022-08-30’) return 0.5;})()
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Date Calculation’ is closed to new replies.