How to default date format on K2 worklist control

  • 15 February 2022
  • 0 replies
  • 217 views

Userlevel 5
Badge +20
 

How to set default date format on K2 worklist control

kbt131174

PRODUCT
K2 Five
TAGS
K2 Workspace
SmartForms
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Objective

This Knowledge Base article describes how to set a default date format for the 'Task Start Date' column on the K2 worklist control.

 

Before You Begin

Currently, it is not possible to change the 'Task Start Date' date format in the worklist control on Design time. The format is then dependant on the following:

1. Individual user's date and time settings

2. Browser’s language settings

 

Here is an example of how the dates may differ on the respective browsers.

On IE browser, the date format is shown as dd/mm/yyyy.

On Chrome browser, the date format is shown as mm/dd/yyyy.

 

If you would like to change the date format on the worklist control so that it is standardized across all clients' browsers, please follow these steps:

How-to Steps

  1. Open the web.config (located by default in [Program Files (x86)]K2 BlackpearlK2 SmartForms Runtime).

2. Edit globalization variable

Please do remember to make a backup copy of the necessary files and folders before making any changes.

    From : <globalization culture="auto" uiCulture="auto" />  

               Image

   

    To : <globalization culture="[Language Culture]" uiCulture="[Language Culture]" />

 

3. Reset IIS

 

Reference Language Culture:-

https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx


0 replies

Be the first to reply!

Reply