Im trying to write a function that counts down to a date which works fine but once the date is passed my countdown keeps on going into the – numerals.
After 1 day is left I need it to say ‘Today’ and after its passed I need it to say ‘Finished’
I’ve made fiddle I hope can explain it better, thanks
Something like this should do the trick. Not tested, your mileage may vary etc…