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.
date object is local or US time?
Hi,
I've got a little script that runs on all transactions in September 08 and after.
The first thing I do is set a date object to be Aug 31 2008 at 23:59:59 so that I can reference it with an 'after' operator.
var date = new Date();
date.setFullYear(2008,7,31);
date.setHours(23);
date.setMinutes(59);
date.setSeconds(59);
The only thing that isn't clear to me is whether that date is my local time or the US server time. I want to be 100% sure that any invoices with a trandate of 1st Sept 2008 will all be captured.
Thanks,
0