Forum Discussion
Nedim
4 months agoCommunity Member
Try this:
const currentTime = new Date();
const timeString = `${currentTime.getHours()}:${(currentTime.getMinutes() < 10 ? '0' : '')}${currentTime.getMinutes()}`;
setVar("HoraAhora", timeString);
- UCICAsociacinCi4 months agoCommunity Member
It worked! thank you very much Nedim