RosBE/RosBE-Windows/Tools/getdate.c
Peter Ward d3bc89592f - Added a small utility (chknewer) to check if one file is newer than another.
- This removes the dependency on test from Config.cmd and Build.cmd.
- Some other miscellaneous cleanup.

svn path=/trunk/tools/RosBE-Windows/; revision=442
2007-10-24 07:04:52 +00:00

31 lines
656 B
C

/*
* PROJECT: RosBE - ReactOS Build Environment for Windows.
* LICENSE: GPL - See LICENSE.txt in the top level directory.
* 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;
}