Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded