Is there a way I can make c++ wait until an intended date for when it should proceed with the rest of the code?
I don't want it to wait using something like wait or sleep, I actually want it to just check using an if statement. Extremely bad pseudocode example:
if current_date == intended_date
cout << "Happy Birthday";
end
I want the program to only say Happy Birthday if the condition of it being a birthday is met. I know you can grab current date using std::chrono::system_clock::now(). However, I don't know how to format the intended_date so that it can check it against the current date.