Skip to main content
1-Visitor
December 14, 2011
Solved

How to truncate/format the timestamp in Windchill

  • December 14, 2011
  • 5 replies
  • 4108 views

Hi All,

I want to format/truncate the timestamp which appears for Created On/Last Modified On attributes in Local Time Zone format. I need only the date, not the time. I don't find anything in the preference manager to configure this. Any idea how to approach?

Thanks,

Wasim

Best answer by MatthewKnight

I'm not sure where you want to modify these attributes. There are a couple of things you could look at to see what works best for you.

1. The describeColumn tag has a dateDisplayFormat attribute. This would be my preference, assuming it works.

2. You may be able to get away with modifying STANDARD_DATE_TIME_ZONE_DISPLAY_FORMAT in com.ptc.core.ui.componentRB, which would probably change just about everything. I would be worried about unintended consequences with this one.

5 replies

1-Visitor
December 10, 2012

Hi Wasim,

I'm looking for the same problem as you a year ago. No reply I see. So does it exist to change the format?

Where are the ProE software developers?

Regards

Bernard

1-Visitor
December 11, 2012

I'm not sure where you want to modify these attributes. There are a couple of things you could look at to see what works best for you.

1. The describeColumn tag has a dateDisplayFormat attribute. This would be my preference, assuming it works.

2. You may be able to get away with modifying STANDARD_DATE_TIME_ZONE_DISPLAY_FORMAT in com.ptc.core.ui.componentRB, which would probably change just about everything. I would be worried about unintended consequences with this one.

1-Visitor
December 17, 2012

Thanks a lot Matthew. It worked.

14-Alexandrite
February 10, 2014

For anyone else trying to find a solution, this one worked for me:

https://www.ptc.com/appserver/cs/view/solution.jsp?n=CS49539

Summary:

There seems to be a hidden config pro option date_type_parameter_format and with the value %yyyy-%mm-%dd you can get the ISO 8601 date format: 2014-02-10.