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!
Searching for date in the previous month
I have a custom record with a custom date field. I am trying to search for all records with a date in the previous month. Using 'on' in the search only returns the data with today's date. Using 'within' gives an unexpected error.
My search filter is as follows:
logFilters[1] = new nlobjSearchFilter( 'custrecord_pf_date_dowloaded', null, 'within', 'previousonemonth');
What operator should I be using?
Thanks,
Wayne Wundram
0