/***************************************
 ** Implementation for functions on the
 ** the class Date
 ***************************************/
#include "Date.h"

void read(Date &D, istream &IN)
{
  char c;
  IN >> D.m >> c >> D.d >> c >> D.y;
}

void write(Date D, ostream &OUT)
{
  string Month[12] = {"January", "February", "March", "April",
                      "May", "June", "July", "August", "September",
                      "October", "November", "December"};
  OUT << D.d << ' ' << Month[D.m-1] << ", " << D.y;
}