Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



One answer

Permanent link

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.


0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,117

Question asked: Nov 29 '17, 12:35 a.m.

Question was seen: 1,803 times

Last updated: Nov 29 '17, 2:33 a.m.

Confirmation Cancel Confirm