Forum
grayalphawolf2012-06-19 19:56:25
Hi all,
I would like to reformat the variable DATE in the format yyyymmdd, but can not find appropriate help on the net ...
Can you help me??

I use:
TB 13.0.1 and
QT-free- 0.9.11.3

Thank you in advance for your answers ...
mawin2012-06-20 04:04:16
DATE format depends on the OS setting. if you want to change this, you could do this with QT pro and a script. simply call the date and reformat as desired:

Script Title:

"DateFormat"

Code:

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

this returns:

2012620 (on 20th June 2012). you can easily format this anyway you like.
Krug Grossmann2014-06-06 13:44:04
Hi all,
I would like to reformat the variable DATE in the format yyyymmdd
Thank you
1
Create post
You need to login before posting in the forum