It's all about the answers!

Ask a question

How to truncate timestapmp value from RTC built in attribute DUE DATE using script


Suyash adsul (91118) | asked Nov 29 '17, 12:35 a.m.

Hi,

We are trying to truncate timestamp value from RTC's built in attribute DUE DATE format by applying calculated javascript on it.
We want to remove timestamp part from DUE DATE format.

Current DUE DATE format is Jun 30, 2017, 12:00:00 PM when we select DUE DATE within workitem, we want to remove timestamp from it, so DUE DATE should only show us value as Jun 30, 2017.

Can we apply script on built in timestamp attribute to achieve required date format ?

Regards,
Suyash

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Nov 29 '17, 2:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This is not possible as far as i can tell, because it is not the data that causes the display, it is the attribute presentation.

The timestamp is a point in time (also related to time zones etc.) So it isĀ  in fact Jun 30, 2017, 12:00:00 PM and you can not change that. The presentation chosen represents the fact. It would have been possible to not display the time, however, since working across time zones is normal, the choice was obviously to show the point in time.


Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.