How do I do a search filtered by a date time field...
# suitescript
c
How do I do a search filtered by a date time field? This works:
Copy code
var dt = format.format({type: format.Type.DATE, value: new Date()});
            search.create({ type: "supportcase", filters: [['startdate', search.Operator.AFTER, dt]], columns: ["internalid"] }).run().getRange(0, 1000);
But this results in UNEXPECTED_ERROR:
Copy code
var dt = format.format({type: format.Type.DATETIME, value: new Date()});
search.create({ type: "supportcase", filters: [['startdate', search.Operator.AFTER, dt]], columns: ["internalid"] }).run().getRange(0, 1000);
Date isn't enough, I need date and time. format.Type.DATETIMETZ also causes UNEXPECTED_ERROR.