Create today.c

This commit is contained in:
janbodnar 2016-01-31 14:01:22 +01:00
parent 5b8c35be77
commit 45ba206d38

13
datetime/today.c Normal file
View File

@ -0,0 +1,13 @@
#include <windows.h>
#include <wchar.h>
int wmain(void) {
SYSTEMTIME st = {0};
GetLocalTime(&st);
wprintf(L"Today is: %d-%02d-%02d\n", st.wYear, st.wMonth, st.wDay);
return 0;
}