Customize Date and Time Formats

Date and time formats in Sterling B2B Integrator can be customized to use international formats for field input and display.

Before performing this procedure, see Working with Property Files for important cautions.

To customize date and time formats:

  1. Navigate to the installation directory.
  2. Navigate to the properties directory.
  3. Open the ui.properties.in file in a text editor, and locate the Input/Display date/time formats section:
    #######################################################################
    # Input/Display date/time formats
    #######################################################################
    PlatformDateFormat.Date.SHORT=MM/dd/yy
    PlatformDateFormat.Date.MEDIUM=MMM d,yyyy
    PlatformDateFormat.Date.LONG=MMMM d,yyyy
    PlatformDateFormat.Date.FULL=EEEE,MMMM d,yyyy
    PlatformDateFormat.Time.SHORT=h:mm a
    PlatformDateFormat.Time.MEDIUM=h:mm:ss a
    PlatformDateFormat.Time.LONG=h:mm:ss a z
    PlatformDateFormat.Time.FULL=h:mm:ss a z
    Note: During operation, Sterling B2B Integrator uses the ui.properties file, not the ui.properties.in file. The date/time edit is performed on the ui.properties.in file to keep the edited values from being overwritten during system initialization and setup.
  4. Edit the date/time pattern strings, using the characters and syntax specified for the Java SimpleDateFormat class as documented at http://www.oracle.com/technetwork/java/index.html.
  5. Save and close the ui.properties.in file.
  6. Stop Sterling B2B Integrator.
  7. Run the setupfiles script using one of the following formats:
    • (UNIX, Linux) – From the install_dir/bin directory, run the setupfiles.sh command.
    • (Windows) – From the install_dir\bin directory, run the setupfiles.cmd command.
  8. Start Sterling B2B Integrator.