[progress Communities] [progress Openedge Abl] Forum Post: Re: Retrieving Localization...

  • Thread starter Thread starter Thierry Ciot
  • Start date Start date
Status
Not open for further replies.
T

Thierry Ciot

Guest
This is not a direct answer to the initial post but it is relevant for future references and/or other users: As part of client-side Javascript SDK we make PageLocalization object available using rbf_getPageContext().getPageLocalization(). It provides the following methods: 1) getDateFormat() — Returns a string representing the date format pattern, for example, "MM/dd/yyyy" 2) getDateTimeFormat() — Returns a string representing the date/time format pattern, for example, "MMM d, yyyy, h:mm tt" 3) getLongDateFormat() — Returns a string representing the long date format pattern, for example, "dddd, MMMM d, yyyy" 4) getLongDateTimeFormat() — Returns a string representing the long date/time format pattern, for example, "dddd, MMMM d, yyyy 'at' h:mm tt" 5) getTimeFormat() — Returns a string representing the time format pattern, for example, "h:mm tt" 6) 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. 7) 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. Thierry. This object interface is documented in detail here: documentation.progress.com/.../

Continue reading...
 
Status
Not open for further replies.
Back
Top