Aaron McCausland
04/23/2026, 5:39 PMCeligo AI
04/23/2026, 5:39 PMAI generated answer (using internal Slack threads):In NetSuite, the
lastmodifieddate field of a record is a datetime field, but when you use search.lookupFields or record.getValue, it returns the date as text down to the minute. If you want to get the lastmodifieddate down to the second, you can use a SQL function to_char in a SuiteQL query.
Here is an example of how you can use it:
sql
SELECT to_char({lastmodifieddate},'YYYY-MM-DD HH24:MI:SS') FROM transaction
This will return the lastmodifieddate in the format 'YYYY-MM-DD HHMMSS', which includes the seconds.
Please note that this will only work in a SuiteQL query, not when using search.lookupFields or record.getValue.
******
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
04/23/2026, 5:39 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.839904785
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817077637
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81237793
Celigo AI
04/23/2026, 5:39 PMAbdul Basit
04/23/2026, 6:01 PMAaron McCausland
04/24/2026, 2:40 PMAbdul Basit
04/24/2026, 2:49 PMAbdul Basit
04/24/2026, 2:56 PMAaron McCausland
04/24/2026, 4:49 PMAbdul Basit
04/24/2026, 5:39 PM