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!
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
Please note that on Friday, March 20, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 4 hours. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Date calculations/Comparisions
Hi All
I'm trying to do a search for tickets last updated in the last 24h, but I'm having problems comparing different format dates:
Last Modified Date is: 30/11/2012 13:56 (from existing ticket)
todaysDate is Fri Nov 30 2012 07:21:19 GMT-0800 (PST) (generated from var todaysDate = new Date(); )
yestDate is Thu Nov 29 2012 07:21:19 GMT-0800 (PST) (calculated as todaysDate - 24 hours)
When I then run the following, it doesn't seem to work. Is it because the formats are different?
If so, how do a re-format them to work in the filter below
filters[2]=new nlobjSearchFilter("lastmodifieddate",null,"within",yestDate, todaysDate);
Thanks in advance
0