DesktopX time question

Im making a clock type object in desktopX, but i dont know how to get the system time for the "Object_OnScriptEnter"
What i mean is, all i need to do is get the current time for the PC. thanks in advance.
1,354 views 3 replies
Reply #1 Top
Dim myTime
myTime = Now()


Now() Documenation

See the Windows Script Documentation for functions to manipulate the time returned. http://www.microsoft.com/downloads/details.aspx?FamilyId=C717D943-7E4B-4622-86EB-95A22B832CAA&displaylang=en
Reply #3 Top
Jscript you use the Date Object

dateObj = new Date()

gets the current date and time

You can then use getHours(), getMinutes(), getSeconds() to get the time using the current locale

or getUTCHours() etc if you want the UTC time.

Link