Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
compare a date
Hello,
In a script I want to compare if a date is between 2 dates
but it seems I don't have the right syntax. as I always have value 0 for my field even if sforderdate is in the range.
What is the right syntax?
Thanks in advance
Cheers
Patricia
if(sforderdate >= '15/4/2013' && sforderdate =< '30/6/2013' ){
recPurchLog.setFieldValue('custrecord_bonus_log_points', sfbonuspoints);
}
else {
recPurchLog.setFieldValue('custrecord_bonus_log_points', 0);
}
0