I need to get the number of milliseconds between now and any fixed time in the future.
This is an example of exactly what I need:
- Get the number of milliseconds between now and the next 6am
- Get the number of milliseconds between now and the next 12pm
- Get the number of milliseconds between now and the next 9pm
Please how can I achieve this using momentjs or just using vanilla Javascript date?
Thank you.