- 4.24.2.28 -
Standard Units
![](images/1.gif)
Dos Unit
![](images/1.gif)
![](images/1.gif)
Dos Unit Procedures and FunctionsSetDate procedure
Targets: MS-DOS, OS/2, Win32
Dos Unit, WinDos Unit
Sets the current date in the operating system.
Declaration:
procedure SetDate(Year, Month, Day: Word);
Remarks:
Invalid dates are ignored by the operating system.
To get the operating system date use
GetDate.
Windows NT:
The SetDate function fails if the calling process does not have
the SE_SYSTEMTIME_NAME privilege. This privilege is disabled by default.
Use the AdjustTokenPrivileges function ( WIN32.HLP )
to enable this privilege and again to disable it after the time has been set.
![Previous: SetCBreak procedure](images/prev.gif) |
![To the Table of Content](images/index.gif) |
![Next: SetFAttr procedure](images/next.gif) |
SetCBreak procedure |
Table of Content |
SetFAttr procedure |
- 4.24.2.28 -