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.
Passing values to a library script
Hi all
I have a bit of javascript to calculate the number of working hours between dates that I want to re-use on multiple scripts.
What I need to do is pass a start date/time value and an end date/time value to the library script. This is where it goes wrong.
The library script runs but it doesnt quite work as expected - the dates that I pass seem to get muddled at the point they move to the library. It appears that the hours and minutes of the date-time become the same for both the start and end dates,
0