Advertisement
Capple

Untitled

Mar 7th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function changeDateFormat() {
  2.   datecounter++;
  3.   if (datecounter % 2 == 1) {
  4.     fulldateContainer.innerHTML = date + "." + month + "." + year;
  5.   } else {
  6.     fulldateContainer.innerHTML = dateContainer.innerHTML = date & monthContainer.innerHTML = months;
  7.   console.log(datecounter);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement