Charles.Bastian
03/26/2020, 9:31 PMvar startDate=format.parse({value:"2020-01-01T12:00:00Z",type:format.Type.DATETIME})
var noteSearchObj=search.create({
type: "note",
filters:[
[
["customer.internalid","anyof",custNSID],
"AND",
["notedate","onorafter",startDate]
]
],battk
03/26/2020, 9:32 PMbattk
03/26/2020, 9:33 PMCharles.Bastian
03/26/2020, 9:33 PMbattk
03/26/2020, 9:33 PMCharles.Bastian
03/26/2020, 9:34 PMbattk
03/26/2020, 9:34 PMCharles.Bastian
03/26/2020, 9:35 PMbattk
03/26/2020, 9:35 PMvar startDate = new Date("2020-01-01T12:00:00.000Z")
battk
03/26/2020, 9:35 PMCharles.Bastian
03/26/2020, 9:35 PMCharles.Bastian
03/26/2020, 9:38 PMbattk
03/26/2020, 9:43 PMCharles.Bastian
03/26/2020, 9:46 PMbattk
03/26/2020, 9:47 PMbattk
03/26/2020, 9:47 PMCharles.Bastian
03/26/2020, 9:48 PMbattk
03/26/2020, 9:49 PM["notedate","onorafter",new Date("2020-01-01T12:00:00.000Z")]
Charles.Bastian
03/26/2020, 9:50 PMCharles.Bastian
03/26/2020, 9:53 PMbattk
03/26/2020, 9:53 PMCharles.Bastian
03/26/2020, 9:54 PMbattk
03/26/2020, 9:54 PMCharles.Bastian
03/26/2020, 9:54 PMbattk
03/26/2020, 9:54 PMbattk
03/26/2020, 9:56 PMbattk
03/26/2020, 9:56 PMbattk
03/26/2020, 9:56 PMCharles.Bastian
03/26/2020, 9:57 PMbattk
03/26/2020, 9:58 PMbattk
03/26/2020, 9:58 PMbattk
03/26/2020, 9:58 PMCharles.Bastian
03/26/2020, 9:58 PMbattk
03/26/2020, 9:59 PMerictgrubaugh
03/26/2020, 9:59 PMDate
passed in to `N/format.format`:
["custrecord_billend" , search.Operator.ON,format.format({value: new Date(), type: format.Type.DATE})]
battk
03/26/2020, 10:00 PMerictgrubaugh
03/26/2020, 10:00 PMDate
object, you should just be able to use N/format.format
erictgrubaugh
03/26/2020, 10:00 PMDATETIME
battk
03/26/2020, 10:01 PMCharles.Bastian
03/26/2020, 10:01 PMerictgrubaugh
03/26/2020, 10:02 PMerictgrubaugh
03/26/2020, 10:02 PMformat.format({value: new Date("2020-01-01"), type: format.Type.DATETIME})
Charles.Bastian
03/26/2020, 10:02 PMerictgrubaugh
03/26/2020, 10:04 PMDate
instance representing the correct timestamp
2. Use N/format.format
to turn the Date
instance into a string as the format()
method automatically uses the current user's (or system's) date format preferencebattk
03/26/2020, 10:05 PMbattk
03/26/2020, 10:05 PMCharles.Bastian
03/26/2020, 10:07 PMbattk
03/26/2020, 10:09 PMbattk
03/26/2020, 10:09 PMCharles.Bastian
03/26/2020, 10:10 PMerictgrubaugh
03/26/2020, 10:11 PMmoment.js
, and it's a matter of `format.format(moment(...).toDate())`whether there's a Time involved or noterictgrubaugh
03/26/2020, 10:11 PMCharles.Bastian
03/26/2020, 10:12 PMCharles.Bastian
03/26/2020, 10:14 PMCharles.Bastian
03/26/2020, 10:16 PM