Mgdate.h

#include <time.h>

class MGDate
{
public:
	MGDate() { Set(); }

	bool Set( int M=0, int D=0, int Y=0 );
	bool Set( const char* Src );
	void Get( char* Dest );

	void Output();

	int GetMonth() { return( m_M ); }
	int GetDay() { return( m_D ); }
	int GetYear() { return( m_Y ); }
	bool SetMonth(int M) { return( Set(M, m_D, m_Y ) ); }
	bool SetDay(int D) { return( Set(m_M, D, m_Y ) ); }
	bool SetYear(int Y) { return( Set(m_M, m_D, Y ) ); }


protected:
	int m_M, m_D, m_Y;
};