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



May 29, 2012, 1:59 PM
24 Posts
topic has been resolvedResolved

Categorized View Control does not display Dates in correct format

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
I have a category in a view control that is a date.
 
On the Notes client in the view, I have the categorized column value set to @Date(fieldName) and on the column properties Advanced Format tab I have the the Style set to Date/Time, On Display is set to MM/DD/YYYY, and I am only displaying the Date, not Time values.
 
However, on the web, it displays as this, for example:
 
But, I want it to display as:
5/25/2012
 
I am guessing you may have to display the value as computed and use some server side JavaScript, but not sure how to do that using a View Control.
 
Any help would be great!
 
Thanks!
Dan
May 31, 2012, 3:52 PM
24 Posts
Solution
The solution I used was to convert the date value to text, so the formula in the view column/category is:
 
@Text(@Date(myField); "D0S0");
 
Seems to fix the issue...
Jun 12, 2012, 4:26 PM
15 Posts
Re: Categorized View Control does not display Dates in correct format
The solution I used was to convert the date value to text, so the formula in the view column/category is:
 
@Text(@Date(myField); "D0S0");
 
Seems to fix the issue...

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