Script to change date format?

When I use {createddate} the result is 2007-03-21
I am trying to write a script so the above date would be formatted as 20070321
So far I am getting absolutely nowhere
Any help would be appreciated :slight_smile:

Presuming that you're talking about using vbscript in the new Rename Script stuff:

strNewName = Replace(strNewName, "-", "")


Excellent works perfectly
Thank you very much
:smiley:

You could also just use {createddate|D#yyyyMMdd}

Jon, that is even better and I do not even have to make a script
Thanks