How to get system date ? 
Author Message
 How to get system date ?

Does anybody know how to obtain the system date in WSH ?

fhs.



Mon, 07 May 2001 03:00:00 GMT  
 How to get system date ?
strDate = Date
MsgBox Date

you can also format date
strDate = FormatDateTime(Date, vbShortDate) 'this will give 11/19/98 or
11/19/1998 depending on what the sytem short date is set up to be mm/dd/yy
or /yyyy

Quote:

>Does anybody know how to obtain the system date in WSH ?

>fhs.



Mon, 07 May 2001 03:00:00 GMT  
 How to get system date ?
If you are using JScript you could use:

   // Get the system date/time down to the milliseconds
   now     = new Date();

----------------------
Harjit S. Batra



Quote:
> Does anybody know how to obtain the system date in WSH ?

> fhs.



Tue, 08 May 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Getting system date (date format and seperator) from JScript

2. Getting system date for installation

3. Getting System Info

4. Getting fontlist from Macintosh system folder

5. Getting System Variables

6. Getting system folder

7. Getting List of Installed Software REMOTELY from NT systems without using WMI

8. getting operating system info

9. Getting System and device Info through vbscript

10. Getting a list of systems in the network neighborhood

11. SCRIPT: Getting System Times on a Class C Subnet via WMI

12. Javascript querying system for the date

 

 
Powered by phpBB® Forum Software