It's all about the answers!

Ask a question

Date format edit in RTC

Gowra chandra varma (11136) | asked Jul 19 '12, 5:01 a.m.
retagged May 25 '13, 4:38 p.m. by Scott Rich (57136)

I am using below script to print current date. Can u pls share the script to edit the date format.

i.e. I have to print 15th as date with current month & year.

var now = new Date();
var date=, {milliseconds:true, zulu:true});

One answer

permanent link
Eric Jodet (6.3k5111120) | answered Aug 23 '12, 9:43 a.m.
edited Aug 23 '12, 9:43 a.m.
I think Customization of Work Items in Rational Team Concert
contains the example you're looking for.
Open the above page, search for "We use the JavaScript function shown below to subtract the current time from the creation date (in milliseconds) and return the value in human-readable form"


Your answer

Register or to post your answer.