Using TRIM, LTRIM, and RTRIM for Formula functions

This article gives examples on using some common string functions that can be used for NetSuite search formulas via user interface or script, and on custom formula fields. TRIM: Removes leading or trailing characters (or both) from a character string Syntax: TRIM([ { { LEADING | TRAILING | BOTH } [ trim_character ]| trim_character}FROM ]trim_source)… Continue reading Using TRIM, LTRIM, and RTRIM for Formula functions

Extract Month and Year from Date field

The formulas for extracting Months and Year from a date field in saved searches TO_CHAR({datecreated},’MONTH’) – displays month name (Character) as result. Ex: Aprilinstead of ‘Month’ we can specify the format in which the month should be displayed.MON – Jan, Feb, etcMM – a numeric month from 1 to 12 TO_CHAR({datecreated},’YYYY’) – displays year in… Continue reading Extract Month and Year from Date field