title: Getting Today's Date into variable
body: <p>i have that c++ project. i want to get today's date to compare it with a saved date in my files. i already searched but all i found is i can output it on the console but that isn't what i want. is it possible?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;string&gt;
  #include &lt;chrono&gt;
  #include &lt;ctime&gt;
  using namespace std;
  static  double interset = .05;
  class Account{
  public:
      string ID;
      double Balance;
      void Deposit(double bal){
          Balance += bal;
      }
      void Withdraw(double bal){
          if (bal &gt; Balance){
              cout &lt;&lt; "Please check the entered amount" &lt;&lt; endl;
          }
          else{
              Balance -= bal;
          }
       }
      void BalanceInqu(){
          cout &lt;&lt; "Your Current Balance Is\t" &lt;&lt; Balance &lt;&lt; endl;
      }
   };
  
  class SavingAccount : public Account{
  public:
      void intersetRate(){
           \\i want to put here a function that calculates the interest rate of an client depending on his account creation date
      }
  };
  </code></pre>
  
  <p>Edit: i want to get the date to store it into variable and compare it with other dates</p>