Free cookie consent management tool by
TermsFeed
Update cookies preferences
Promotic
PRODUCTS
Products
What is PROMOTIC
PROMOTIC News
Documentation PROMOTIC
Freeware PROMOTIC
PROMOTIC school version
Applications development
Application references
DOCUMENTATION
PROMOTIC videos on Youtube
Documentation
E-SHOP
Price list
Licence order
Business conditions
Download
Download
PROMOTIC 9.0
PROMOTIC 8.3
PROMOTIC 8.2
PROMOTIC 8.1
PROMOTIC 8.0
PROMOTIC 7.5
Stable versions - Download
PmNetKey
Info materials
Services
Presentation for you
Trainings
For schools
Applications development
Application references
CONTACT
Technical support
Contacts
Distributors
System integrators
ABOUT US
MICROSYS - Company profile
News
Rewards and media
Partners
GDPR and Cookies
SOCIAL
Facebook
Youtube
LinkedIn
FORUM
Year -
function
of language
VBScript
Description:
Year (integer).
Syntax:
Integer
Year
(
Date
date
)
Parameters:
date
(
Date
)
Date and time
See also:
-
VBScript.Month
(function)
-
VBScript
date and time
functions
-
PmDateObject.GetYear
(method)
-
Pm
date and time
methods
Example:
VBScript
Select and copy to clipboard
Dim
tDate
,
nYear
tDate
= #October 19,
2024
#
nYear
=
Year
(
tDate
)
' nYear contains 2024
PROMOTIC 9.0.31
SCADA system documentation
MICROSYS, spol. s r.o.
Send page remark
Contact responsible person
Navigation:
-
PROMOTIC SCADA/HMI system
-
Documentation contents
-
Scripting Languages
-
VBScript
-
Functions VBScript
-
Abs
-
Array
-
Asc
-
Atn
-
CBool
-
CByte
-
CDate
-
CDbl
-
Chr
-
CInt
-
CLng
-
Cos
-
CreateObject
-
CSng
-
CStr
-
Date
-
DateAdd
-
DateDiff
-
DatePart
-
DateSerial
-
DateValue
-
Day
-
Eval
-
Exp
-
Filter
-
Fix
-
FormatDateTime
-
FormatNumber
-
FormatPercent
-
GetObject
-
Hex
-
Hour
-
InputBox
-
InStr
-
InstrRev
-
Int
-
IsArray
-
IsDate
-
IsEmpty
-
IsNull
-
IsNumeric
-
IsObject
-
Join
-
LBound
-
LCase
-
Left
-
Len
-
Log
-
LTrim
-
Mid
-
Minute
-
Month
-
MonthName
-
MsgBox
-
Now
-
Oct
-
Replace
-
RGB
-
Right
-
Rnd
-
Round
-
RTrim
-
Second
-
Sgn
-
Sin
-
Space
-
Split
-
Sqr
-
StrComp
-
String
-
StrReverse
-
Tan
-
Time
-
TimeSerial
-
TimeValue
-
Trim
-
TypeName
-
UBound
-
UCase
-
VarType
-
Weekday
-
WeekdayName
-
Year
© MICROSYS, spol. s r.o.