Hi,
i have tried this, and it works:
datum="{getDate(),dateformat,dd.MM.yyyy HH:mm:ss}"
But what i need is a function that calculate a given UTC time into it's MESZ time.
The given UTC time is in a human readable format, like: 20130425-192000 (25.April 2013 - 19:20:00 o'clock)
I think, it is possible to add 2 hours to utc with
UTC_date=getDate(2013,04,25,19,20,00)
// UTC_date is now "1366910400000"
MESZ_date=addHours({UTC_date}, 2)
// MESZ_date is now "1366917600000"
Now i want to turn the java date into a human readable format, like this: 20130425-212000 - But no one of my codes worked:
Human_MESZ=getDate({MESZ_date},dd.MM.yyyy HH:mm:ss)
// Could not execute...
Human_MESZ=getDate("{MESZ_date}",dd.MM.yyyy HH:mm:ss)
// Could not execute...
Human_MESZ=getDate(MESZ_date,dd.MM.yyyy HH:mm:ss)
// Could not execute...
Human_MESZ="getDate({MESZ_date},dd.MM.yyyy HH:mm:ss)"
// Human_MESZ is then "getDate(1366917600000,dd.MM.yyyy HH:mm:ss)"
Human_MESZ={getDate({MESZ_date},dd.MM.yyyy HH:mm:ss)}
// Could not execute...
Human_MESZ="{getDate({MESZ_date},dd.MM.yyyy HH:mm:ss)}"
// Human_MESZ is "{error}"
Human_MESZ={getDate({MESZ_date}),dateformat,dd.MM.yyyy HH:mm:ss}
// Could not execute...
Human_MESZ="{getDate({MESZ_date}),dateformat,dd.MM.yyyy HH:mm:ss}"
// Human_MESZ is "{error}"
Human_MESZ="{getDate({MESZ_date}),dd.MM.yyyy HH:mm:ss}"
// Could not execute...
Human_MESZ="{getDate(MESZ_date),dd.MM.yyyy HH:mm:ss}"
// Could not execute...
Human_MESZ="{getDate(),{MESZ_date},dd.MM.yyyy HH:mm:ss}"
// Could not execute...
Human_MESZ={getDate({MESZ_date}),dd.MM.yyyy HH:mm:ss}
// Could not execute...
Human_MESZ="{getDate({MESZ_date}),dd.MM.yyyy HH:mm:ss}"
// Human_MESZ is "{error}"
Even when i put the java date directly into the code, i'll get only errors:
Human_MESZ=getDate(1366917600000,dd.MM.yyyy HH:mm:ss)
// Could not execute...
Human_MESZ="{getDate(1366917600000),dateformat,dd.MM.yyyy HH:mm:ss}"
// Human_MESZ is "{error}"
Human_MESZ="{getDate("1366917600000"),dateformat,dd.MM.yyyy HH:mm:ss}"
// Could not execute...
Where is my problem??
