Source language: Translate to:

Bug in help file.

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Bug in help file.

Postby TMcD » Tue Oct 10, 2006 11:17 am

I looked up predefined gloabl variables.

[DateLong]

Is stated as this:

The current date in Windows’ long format (October 22, 2006).

What [DateLong] actually returns on XP is:

Sunday, October 22, 2006

The "day" is also added.

I was looking for this format, "October 22, 2006", that's how I found out that [DateLong] adds the "day", instead of what is shown in the help file.

Troy
TMcD
 
Posts: 237
Joined: Sun Apr 10, 2005 11:20 am

Postby Gaev » Tue Oct 10, 2006 12:41 pm

Troy:

[DateLong] will return the date in a (long) format as defined in the "Long Format" for your Operating System ... for Windows XP, look under the "Regional and Language Options" section of the Control Panel.

So it will return different values on different computers.
I was looking for this format, "October 22, 2006"
... try ...
Code: Select all
SetVar "[troyDate]"[Month] [DayNum], [Year]"
User avatar
Gaev
 
Posts: 3737
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest