- Joined
- Nov 18, 2011
- Messages
- 8
- Reaction score
- 0
Dear 3cx support team,
I have some problems using the VAD javascript expressions.
in the record component i am trying to save files using a java time +date expression currently i am using new Date().getHours() and it returns me the hour format like 17. ( i found this expression on your website under "using javascript expressions in VAD'
currently i am using this expression:
CONCATENATE('audioofclients\\',new date().getHours,'.wav')
It saves file`s in a specific folder and names it 17.wav
But i want to save files with the day,month,year hours and minute`s format so it wil look like 18-11-2011 17.16.wav
so i tryed new Date().getHours().getMinutes() but this expression didnt work properly( not at all) i tried many different expressions from this site https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date.
But none of them seem to work
can anyone help me out using the correct expressions ?
Thanks in advance
I have some problems using the VAD javascript expressions.
in the record component i am trying to save files using a java time +date expression currently i am using new Date().getHours() and it returns me the hour format like 17. ( i found this expression on your website under "using javascript expressions in VAD'
currently i am using this expression:
CONCATENATE('audioofclients\\',new date().getHours,'.wav')
It saves file`s in a specific folder and names it 17.wav
But i want to save files with the day,month,year hours and minute`s format so it wil look like 18-11-2011 17.16.wav
so i tryed new Date().getHours().getMinutes() but this expression didnt work properly( not at all) i tried many different expressions from this site https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date.
But none of them seem to work
can anyone help me out using the correct expressions ?
Thanks in advance