Code Fix: The day difference expression is not returning the correct results

  • 16 February 2021
  • 0 replies
  • 3 views

Badge +9
 

Code Fix: The day difference expression is not returning the correct results

KB002672

PRODUCT
K2 smartforms 4.7
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.

 

Issue Description

When populating calendar controls with the day difference expression, incorrect results return for certain dates. For example:

  • When the From date is set to 1/8/2018 and the To date is set to 1/2/2019 the result will incorrectly display as 181 days.

Cause

The date difference calculation did not handle the difference between February total days and other months.

Resolution

  1. Ensure you have K2 4.7 installed.
  2. Download and Install the K2 4.7 March 2018 Cumulative Update from K2 Partner and Customer Portal.
  3. Download the K2 4.7 March 2018 Cumulative Update FP25 from K2 Partner and Customer Portal.
  4. Install the K2 4.7 March 2018 Cumulative Update FP25 to apply the fix.
  5. It is recommended to refresh the browser cache.

 


0 replies

Be the first to reply!

Reply