How to set a variable to today value

Hi,

I am new for FinalBuilder and I have a question maybe very simple.

I try to defind a vairable call "TodayFolder" which is today value with format: yyyymmdd.

And I try to define a variable in javascript like this:

------------------------------------------------------------

var d = new Date();var curr_date = d.getDate();var curr_month = d.getMonth();var curr_year = d.getFullYear();var todayStr = curr_year + curr_month + curr_date;

------------------------------------------------------------

But how can I set the "TodayFolder" = todayStr?

Cheers,

 

 

FinalBuilder variables can be referenced in script without declaring them. Also, there is a Get DateTime actions that will do this without needing to use script.

Excellent! This is exact what I want!

Thank you very much!