PageLocalization
Purpose
A PageLocalization object encapsulates the settings on a
user's My Localization Settings page. The
PageLocalization object is only available in the New UI. You
can access a PageLocalization object using the
PageContext function getPageLocalization(). See PageContext for details.
Interface
Unless indicated otherwise, all of the following methods return the format specified in the user's localization settings.
getDateFormat()— Returns a string representing the date format pattern, for example,"MM/dd/yyyy"getDateTimeFormat()— Returns a string representing the date/time format pattern, for example,"MMM d, yyyy, h:mm tt"getLongDateFormat()— Returns a string representing the long date format pattern, for example,"dddd, MMMM d, yyyy"getLongDateTimeFormat()— Returns a string representing the long date/time format pattern, for example,"dddd, MMMM d, yyyy 'at' h:mm tt"getTimeFormat()— Returns a string representing the time format pattern, for example, "h:mm tt"getDateEditFormat()— Returns a string representing the date format pattern used on form pages (new, edit, quick create, status change) when showing Date field values in input widgets. This format is not in the user's localization settings and depends on the locale.getDateTimeEditFormat()— Returns a string representing the date/time format pattern used on form pages (new, edit, quick create, status change) when showing DateTime field values in input widgets. This format is not in the user's localization settings and depends on the locale.