how to parse date

Hi I am using this parameter in my build script: system.build.start.date to get the build date, so  in May 08, 2012 system.build.start.date will be "20120508"

Is there any way to parse this parameter to something like 2012-05-08 which is more legible?

Thank you.

Regards

2 comments
Comment actions Permalink

Hi

What is your scripting language? yo can reformat the original value using string manipualation.

0
Comment actions Permalink

Hi, thanks for reply. since i am using command line, and Dos batch, it was a bit tricky. but

I passed the argument to the script and did the parsing outside Teamcity command line and it worked. Thanks again.

Regards

Maria

0

Please sign in to leave a comment.