If you are asking a question, please follow this template:
- My goal is: [ “on1:true ,DTime:10, Time: 15, 11/27/20:15”]
- My actions are:
let now = Timer.now();
let a = Timer.fmt('%H:%M:%S', now);
print(a);
if(value===1 ){
count=count+1;
n=n+1;
s = Timer.fmt("%H:%M:%S.", n);
print(s);
let b = JSON.stringify(Timer.fmt('%D', now));
print(n);
print(b);
msg =JSON.stringify({on1:true ,DTime:n, Time: s, b : s });
i have even tried
(JSON.stringify(on1:${true} ,DTime:${n}, Time: ${s}, ${b}:${s}
)); but this is not working
- The result I see is:
[{"on1":true,"DTime":10,"Time":15,"b":15}]
- My expectation & question is: [how can i get current date in place of b ]