This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Jun 26, 2013, 1:56 PM
67 Posts
topic has been resolvedResolved

DateTime Calculation in SSJS

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: DateTime
  • Replies: 2

 

@Text(@Round(((@Date(2013,7,1,0,0,0)- @Now)/86400000))) + " Days"

 

The result is:  15887 Days (when calculated on 26. June 2013)

I think it schould be 4 Days.

 

Does anybody know the reason ?

Thanks, Uwe

Jun 26, 2013, 2:50 PM
54 Posts
@Now

@Now is a function.

So you need to write

@Text(@Round(((@Date(2013,7,1,0,0,0)- @Now())/86400000))) + " Days"

Jun 26, 2013, 6:22 PM
67 Posts
Little detail .....

but it works ... Thank you


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal