// Displays date
// By Ben 11:56 18/09/2016
#include <iostream>
#include <Windows.h>

using namespace std;
using std::cout;
using std::endl;

string MyDate(char *Format){
	SYSTEMTIME st;
	char sDate[80];
	//Get local system time
	GetLocalTime(&st);
	//Format date
	GetDateFormatA(0, 0, &st, Format, sDate, 80);
	//Return date
	return sDate;
}

int main(int argc, char *argv[]){
	//Output long version of date.
	cout << "Today is : " << MyDate("dddd, MMMM yyy").c_str() << endl;

	system("pause");
	return 0;
}