VBScript Basics, Part 40 | Date Functions
103 بار بازدید -
7 سال پیش
-
VBScripting (.vbs) Basic tutorial on
VBScripting (.vbs) Basic tutorial on how to use the various date functions.
Code Example:
_____
'Interval Values
'-------------------
'd = Day
'm = Month
'yyyy = Year
'w = Weekday
'y = Day of year
'ww = Week of year
'q = Quarter
'h = Hour
'n = Minute
's = Second
'-------------------
'Date()
MsgBox Date() ,,"Current date"
'Time()
MsgBox Time() ,,"Current time"
'Now()
MsgBox Now() ,,"Current date time"
'DateAdd(interval, amount, date)
MsgBox DateAdd("m", 3, date) ,,"+3 Mo
7 سال پیش
در تاریخ 1396/10/08 منتشر شده
است.
103
بـار بازدید شده