Page 1 of 1

getting current date

Posted: February 15th, 2010, 3:45 am
by iyadooz
hi all

im working on this project that need to index each movie i render with the current date ...is there a script i can write to an empty txt source layer to get the current date (day,month,year) automatically ....please help ?? :(

Re: getting current date

Posted: February 15th, 2010, 12:32 pm
by Dan Ebberts
Some variation of this Source Text expression should get you there:

D = new Date(Date(0));
"" + D.getDate() + "/" + (D.getMonth()+1) + "/" + D.getFullYear()


Dan