added constructor and destructor in date.h