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
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