|
|
|
Forum
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 ... |
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. |
Hi all, I would like to reformat the variable DATE in the format yyyymmdd Thank you | 1 You need to login before posting in the forum |
|