You are here:
Utils
Utils is a class of the Framework API.
Required Editions
| Available in: Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled. |
- addDays2AnsiDateTime(sDate, iDays)
This function returns a new ANSI string, which iDays shifts. - convertDate2Ansi(value)
This function returns an ANSI date-time string for the specified date. - convertDateTime2Ansi(value)
This function returns an ANSI date-time string for the specified date. - convertTime2Ansi(value)
This function returns an ANSI time string for the specified date. - createAnsiDateNow()
This function returns the current date time in ANSI format. - createAnsiDateTimeNow()
This function returns the current date-time in ANSI format. - createAnsiDateTimeToday()
This function returns the current date as ANSI date-time. - createAnsiDateToday()
This function returns the current date as ANSI date. - createAnsiTimeNow()
This function returns the current time as a short time string. - getCalendarWeekISO(value)
This function returns the calendar week for the value that you pass according to ISO standard. - getCalendarWeekUS(value)
This function returns the calendar week for the value that you pass according to old USA standard. - getCalendarWeekYearISO(value)
This function returns the year for the first day of week according to ISO standard. - getMaxDateTimeDB()
This function equals 64092124800 or Utils.getMaxDateTimeAnsi in Consumer Goods Cloud. - getMinDateTimeDB()
This function equals -8520336000 or Utils.getMinDateTimeAnsi in Consumer Goods Cloud.
Did this article solve your issue?
Let us know so we can improve!

