Discussion:
finalbuilder question
(too old to reply)
Arthur Hoornweg
2007-06-15 14:22:46 UTC
Permalink
Hello all,

does anyone know how to set a variable in Finalbuilder 5 to contain
the date? I need it to have the format YYYYMMDD.





kind regards,
--
Arthur Hoornweg

(In order to reply per e-mail, please just remove the ".net"
from my e-mail address. Leave the rest of the address intact
including the "antispam" part. I had to take this measure to
counteract unsollicited mail.)
Michael Elsdörfer
2007-06-15 17:16:06 UTC
Permalink
Post by Arthur Hoornweg
does anyone know how to set a variable in Finalbuilder 5 to contain
the date? I need it to have the format YYYYMMDD.
I'm using a script action, like this:

BuildTimestamp = Math.floor(new Date().getTime()/1000);

Michael
Matthew Jones
2007-06-16 09:53:00 UTC
Permalink
Interesting how many ways there are to do things. I use as BeforeAction
script with: (obviously the format can be changed)

BuildDate = FBFormatDateTime("yyyy-mm-dd", Now)

/Matthew Jones/
Michael Elsdörfer
2007-06-16 10:40:40 UTC
Permalink
Post by Matthew Jones
BuildDate = FBFormatDateTime("yyyy-mm-dd", Now)
Ah, I didn't know about that one. When I wrote the above, I was mostly
interested in a timestamp though...but good to know there is some date
functionality built-in.

Michael

marc hoffman
2007-06-16 00:03:05 UTC
Permalink
Arthur,
Post by Arthur Hoornweg
does anyone know how to set a variable in Finalbuilder 5 to contain
the date? I need it to have the format YYYYMMDD.
there's a Get Date action you can use. You can provide a custom format
string just like you would to FormatDateTime().

hth,
--
marc hoffman
Chief Architect
RemObjects Software
http://www.remobjects.com

and the fifty-two daughters of the revolution
turn the gold to chrome
Loading...