Increment date and time by 1

Increment date and time by 1

Hello.

I have a rather simple code that shows the time and date as one string.

Example: if now the time and date is 07:30 on 17/12 then the output is 07301712.

Im trying to find a way to increment each of the numbers by 1 per each number.

Example: if my current output is 07301712 then i need jQuery to output 18412823. which means +1 to each number in the string.

How can this be achieved?

  1. <span id="date"></span>

  1. var now = dateFormat(new Date(), "HHMMddmm");
  2. $('#date').append(now);

Thank you for your help.