RosBE/RosBE-Windows/Tools/getdate.c
Peter Ward 78bef6dc83 - Clarify the LICENSE line in the header of each file for the RosBE.
svn path=/trunk/tools/RosBE/; revision=659
2008-01-24 21:32:58 +00:00

31 lines
655 B
C

/*
* PROJECT: RosBE - ReactOS Build Environment for Windows.
* LICENSE: GNU General Public License v2. (see LICENSE.txt)
* FILE: Tools/getdate.c
* PURPOSE: Returns System Date
* COPYRIGHT: Copyright 2007 Peter Ward <dralnix@gmail.com>
*
*/
#include <windows.h>
#include <stdio.h>
int main(void)
{
SYSTEMTIME LocalSystemTime;
char CurrentDate[20];
GetSystemTime(&LocalSystemTime);
GetDateFormat(LOCALE_USER_DEFAULT,
0,
&LocalSystemTime,
"MM/dd/yyyy",
CurrentDate,
20);
printf("%s", CurrentDate);
return 0;
}