title: How to convert boost::date_time::date::day_of_week() to string type?
body: <p>Here's what i want to do.</p>
  
  <pre><code>ptime now = second_clock::local_time();
  date today = now.date();
  today.day_of_week();
  string day = "Sat";
  if(day == to_string(today.day_of_week()))
  {
     //perform an action
  }
  else
  {
     //perform another action
  }
  </code></pre>
  
  <p>The code compiles but the program never executes the if block. How else can i convert day_of_week() to string? </p>