Unanswered question

I need to use timestamp that looks like (YYYY-MM-DDTHH:MM:SSZ) ex: 2015-02-17T18:57:13Z. Is it possible to use the currentMilliSeconds and convert that timestamp to a customized format? If not, would you recommend a solution to end up with such a timestamp?