How do I convert this excel formula into Javascript for Custom Calculation Script (in fillable PDF)
My Excel formula is =IF(A3>=DATE(2022,1,1),0.53,0.5)
This looks at a cell (e.g., A3) and determines whether or not the date in that cell is after Jan 1, 2022. If it is, then the value is .53 and if not, it is .50. The purpose of this formula is to auto-caluate mileage reimbursement rates.
I am not familar with Javascript, though I've been able to learn some things online (how to code if/thens). What I can't figure out is how to represent "greater than xx/xx/xx date" in JS.
