[Solved] How do I successfully pass in a parameter in this onclick function? Uncaught ReferenceError: B081517B is not defined [duplicate]
You’d have to convert your date string to a timestamp (milliseconds since 1-1-1970). Then you could do the same to the current date and compare the two (subtracting one from another). With the difference in milliseconds, you can calculate the amount of hours by dividing it by the amount of milliseconds that are in one … Read more