Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Displays the Date and Time dialog box. This method has the same effect as right-clicking the clock in the taskbar status area and selecting Adjust date/time.
Syntax
IShellDispatch.SetTime()
IShellDispatch.SetTime()
Parameters
This method has no parameters.
Return value
JScript
This method does not return a value.
VB
This method does not return a value.
Remarks
This method is implemented and accessed through the Shell.SetTime method.
Examples
The following examples show the use of SetTime in JScript, VBScript, and Visual Basic.
JScript:
<script language="JScript">
function fnShellSetTimeJ()
{
var objShell = new ActiveXObject("shell.application");
objshell.SetTime();
}
</script>
VBScript:
<script language="VBScript">
function fnShellSetTimeVB()
dim objShell
set objShell = CreateObject("shell.application")
objshell.SetTime
set objShell = nothing
end function
Visual Basic:
Private Sub fnShellSetTimeVB()
Dim objShell As Shell
Set objShell = New Shell
objshell.SetTime
Set objShell = Nothing
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
IDL |
|
DLL |
|