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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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