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
One answer
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.