Skip to Content
author's profile photo Former Member
Former Member

NWEngine function for date

Is there a list of nwengine functions anywhere? I take it to be a VBscript capable, but there's no guide on how to get it to do simple things like date and time in any of the sample scripts. It is unable to resolve the %date% and %time% variables,

NwEngine.Variables.ResolveString("%date%")

yet it resolves other variable successfully,

NwEngine.Variables.ResolveString("%windir%\saplogon.ini")

NwEngine.Variables.ResolveString("%username%")

What gives?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 07:02 PM

    Dim MyTime

    MyTime = CStr(Time) ' Return current system time.

    Dim MyDate

    MyDate = CStr(Date) ' MyDate contains the current system date.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.