|
| |
.GetDate
Description
- Displays the current date in local format (like DATE /T)
- Saves the value in #Date
- Similar to %DATE% in 2K/XP/K3 but is CONSISTENT across NT/2K/XP/K3
- Does not contain a trailing space (like DATE /T does)
Syntax
At the Command Prompt
|
C:\>. GetDate |
|
|
|
C:\>%.GetDate% |
|
|
In a Script
Parameters and Switches
Errorlevels and Output Variables
{examples use US English date format}
|
Display to
STDOUT |
|
Value of
#Date |
|
Error
Level |
|
Description of Result |
|
Wed 01/01/2003 |
|
Wed 01/01/2003 |
|
n/a |
|
Display current date in local format |
Examples, Notes and Instructions
NT
2K
XP
K3 |
C:\GuardPost>%.GetDate%
Wed 01/01/2003
C:\GuardPost>SET #Date
#Date=Wed 01/01/2003 |
- Output is displayed to STDOUT
- To suppress console display, use
%.GetDate% %.Quiet%
{errorlevel and output variable(s) will still be available}
Related .Mount/\Commands, #Constants,
$Functions, :Procedures
|
Resource |
|
Short Description |
|
.GetTime |
|
Display current time in local time format |
|
.GetTimeP |
|
Display current Precise time local time format |
|
.GetLogDate |
|
Display current date as yyyymmdd, regardless of the local date format |
|
.GetLogTime |
|
Display current time as hhmnss, regardless of the local time format |
|
.GetLogTimeP |
|
Display current time as hhmnsshs, regardless of the local time format |
!GuardNotes
...
|
K
E
Y |
Common Commands |
INTERNAL |
External |
/SWITCH |
Parameter |
Help text |
AddonTool |
|
Mounted Commands |
.Mount/\Command |
CmdShorthand |
#Constant |
$FUNCTION |
:Procedure |
!GuardNote |
|
Operating Systems |
NT/2K/XP/K3 |
NT Only |
NT/2K |
2K Only |
2K/XP |
XP Only |
XP/K3 |
K3 Only |
2K/XP/K3 |
|