James Morris
02/17/2026, 5:00 PMCeligo AI
02/17/2026, 5:00 PMAI generated answer (using internal Slack threads):In SuiteScript 2.1, it is possible to run a search for the last modified date based on not just the date, but the time as well. However, it's important to note that the handling of date and time in NetSuite can be complex due to timezone differences and the way NetSuite handles date and time fields. When dealing with date and time in SuiteScript, it's crucial to understand that a JavaScript
Date object represents a single moment in time, which can be represented as different strings in different timezones. When you retrieve a date from a search in SuiteScript, it will be returned as a string in the timezone of the current user.
To filter based on date and time, you can use the format.parse function from the N/format module to parse the date string into a Date object. This function allows you to specify the timezone, which can be useful if you need to handle different timezones in your script.
Here is an example of how you can use format.parse to parse a date string:
javascript
var scriptDate = format.parse({
value: scriptDateString,
type: format.Type.DATETIME,
timezone: 5, // specify the timezone
});
Then, you can use this Date object in your search filters. For example:
javascript
var filters = [
{
name: 'lastmodifieddate',
operator: search.Operator.AFTER,
values: [scriptDate]
}
];
Please note that the handling of date and time in SuiteScript can be complex and may require some trial and error to get right. Always test your scripts thoroughly to ensure they are working as expected.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/17/2026, 5:01 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838623047
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837158084
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828735352
Celigo AI
02/17/2026, 5:01 PM