[ad_1]
I’m trying to calculate the time remaining based on a target date. I have a target date of “July 4, 2022 10:00:00” and I want to subtract that from today’s date.
I first did SET @var_name = “July 4, 2022 10:00:00”
followed by SELECT datediff(now(),@var_name) but it keeps returning a null value. Is there a way where I can have it display the number of days, hours and minutes remaining from the target date?
[ad_2]