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