if statements using dates?

the input I enter is both a month and a day, my problem is this input has to coincide with these three sets of dates:

January 1st - April 20th: $250 dollars owed
April 21st - June 21st: $300 dollars owed
June 22nd - July 7th: $350 dollars owed

My problem is I am lost on how to write the if statements such as:

if (month && day > January 1st || month && day < April 20th)
{
cout << "You owe $250 dollars!" << endl;

How would I write this correctly?
See this:

http://www.cplusplus.com/reference/ctime/localtime/?kw=localtime

you may fill the struct tm:

http://www.cplusplus.com/reference/ctime/tm/?kw=tm

Read what's already present in the time library:

http://www.cplusplus.com/reference/ctime/

This should contain all you need
thanks bruh
make the middle one && instead of || ! :)
Topic archived. No new replies allowed.