Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Nível 1
Nível 2
Faça login na Comunidade
Faça logon para exibir todas as medalhas
Esta conversa foi bloqueada devido à inatividade. Crie uma nova publicação.
Hi eveyone, I'm not an expert about using javascript code in Adobe Campaign but I need help to put a script into the javacode to pass a set of variable. More in detail I am not able to set a variable when the filed is a date format. Below an example of my simple script that I'd like to realize into the javacode where the question mark is my prblem to resolve. Could anyone help me? thanks in advance
// Global Vars
// CMPId (string)
// insert cmpID e internal name
//
vars.cmpId = '108626'
vars.iname = 'OP5201'
//
//insert the date (dd/mm/yyyy hh:mm:ss)
//
vars.date: ????
//
//
Solucionado! Ir para a Solução.
Visualizações
respostas
Total de curtidas
Hi,
You can try the following snippet which where the input is today's date(10th Oct) in "yyyy/mm/dd hh:mm:ss" format.
vars.myDate = new Date("2018/10/08 10:05:00");
logInfo(vars.myDate.toString());
Regards,
Deb
Visualizações
respostas
Total de curtidas
Hi,
You can try the following snippet which where the input is today's date(10th Oct) in "yyyy/mm/dd hh:mm:ss" format.
vars.myDate = new Date("2018/10/08 10:05:00");
logInfo(vars.myDate.toString());
Regards,
Deb
Visualizações
respostas
Total de curtidas
Thank you very much! Correct!
Best regards
Maurizio
Visualizações
respostas
Total de curtidas
Visualizações
Curtida
respostas