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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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