#include <atlstr.h> CString mm; mm.Format("%02d", int(t.tm_mon + 1)); cout<<mm;
월 출력시 12월은 12로 출력되지만 2월은 2 말고 02로 출력하고 싶을 때 사용