Monday, July 9, 2018

VBScript - Date and Time Functions

VBScript - Date and Time Functions


Advertisements


VBScript Date and Time Functions help the developers to convert date and time from one format to another or to express the date or time value in the format that suits a specific condition.

Date Functions

FunctionDescription
DateA Function, which returns the current system date
CDateA Function, which converts a given input to Date
DateAddA Function, which returns a date to which a specified time interval has been added
DateDiffA Function, which returns the difference between two time period
DatePartA Function, which returns a specified part of the given input date value
DateSerialA Function, which returns a valid date for the given year,month and date
FormatDateTimeA Function, which formats the date based on the supplied parameters
IsDateA Function, which returns a Boolean Value whether or not the supplied parameter is a date
DayA Function, which returns an integer between 1 and 31 that represents the day of the specified Date
MonthA Function, which returns an integer between 1 and 12 that represents the month of the specified Date
YearA Function, which returns an integer that represents the year of the specified Date
MonthNameA Function, which returns Name of the particular month for the specified date
WeekDayA Function, which returns an integer(1 to 7) that represents the day of the week for the specified day.
WeekDayNameA Function, which returns the weekday name for the specified day.

Time Functions

FunctionDescription
NowA Function, which returns the current system date and Time
HourA Function, which returns and integer between 0 and 23 that represents the Hour part of the the given time
MinuteA Function, which returns and integer between 0 and 59 that represents the Minutes part of the the given time
SecondA Function, which returns and integer between 0 and 59 that represents the Seconds part of the the given time
TimeA Function, which returns the current system time
TimerA Function, which returns the number of seconds and milliseconds since 12:00 AM
TimeSerialA Function, which returns the time for the specific input of hour,minute and second
TimeValueA Function, which converts the input string to a time format

No comments:

Post a Comment