Changing / to - in variable for date format
I have my $date$ system variable set to dd/mm/yyyy format however I want to also use the variable to create a file name, however you cant have / in file names so I want to subsitute it for a dash - so it would be dd-mm-yyyy. I'm not sure how best to go about it, if its atall possible?
I have also tried to use $day$-$Month$-$year$ however if the day or month has a leading 0 then it removes it... if someone can solve this dropping of the leading 0 issue then I could use this method
Cheers
|