Skip to content

Locale

Include: Use System\Locale.pkg

Locale controls the current program locale used for date, time, number, currency, and string conversion behavior.

Set_Locale selects a named locale or built-in locale preset. Individual DF_LOCALE_* attributes customize the active locale. Push_Locale and Pop_Locale save and restore the active locale settings for scoped changes.

This section documents DataFlex-facing constants, commands, attributes, and conversion effects.

Locale selection

Locale attributes

Formatting patterns

Date and time helpers

  • DateTime - Date/time construction, date arithmetic, timespan arithmetic, and week calculations.