Just need to know how to get the closest 12:00:00pm in the JavaScript date object, for some reason I’m baffled! EG if it is 09:00AM on the 1st of July, then it will be 12:00PM 1st July, however if it’s 01:00PM on the 1st of July, then I need 12:00PM 2nd July returning.
Cheers.
Like this: Add a day if hours > 12