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
setDateTimeValue - user preferences break this method?
I'm trying to set a DateTime field using the setDateTimeValue method. It works fine when the user's preferences for date format is mm/dd/yyyy and time format is hh:mm AM/PM, but if the user executing the script has any other formats picked in their preferences (i.e. 24 hour time format for example) it does not appear to work - an invalid argument error is returned. I've tried making sure that the same format is always entered to the method, and I've also tried matching the format to the user's preferences but it does not seem to matter. Does anyone have a
0