Description:
The Timer() function returns the Number of seconds and MiliSeconds since 12:00 AM.
Format:
Timer()
Example:
@TutorialHorizon
Description:
The Timer() function returns the Number of seconds and MiliSeconds since 12:00 AM.
Format:
Timer()
Example:
TimeSerial()
Description:
The TimeSerial() function returns the Time type based on the parameters provided (Hours, Minutes and Seconds).
Format:
DateSerial(Hour,Minutes,Seconds)
Arguments:
Read moreVBA-Excel: Date-Time Functions – TimeSerial() and TimeValue()
WeekDay()
Description:
The WeekDay function takes Date as a parameter and returns a number between 1 and 7, that is the week day of the date provided.
Format:
WeekDay (strDate [Firstdayofweek])
Arguments:
Read moreVBA-Excel: Date-Time Functions – WeekDay() and WeekDayName()
Month()
Description:
The Month function takes Date as a parameter and returns a number between 1 and 12, that is the month of the date provided.
Format:
Month(strDate)
Arguments:
Read moreVBA-Excel: Date-Time Functions – Month(), Year() and MonthName()
This tutorial will teach you how to get all the working days or weekdays in a specified date range(excluding Satudays and Sundays), simple but very useful when you have come up with a excel where you have to work with all the business working days. Example: If the date range is mentioned between 8-Jan-2014 to … Read more VBA-Excel: Get all the WeekDays or Working days in Specified Date Range, (excluding Satudays and Sundays)
Hour()
Description:
The Hour function takes time as a parameter and returns a number between 0 and 23, that is the Hour of the time provided.
Format:
Hour(strTime)
Arguments:
Read moreVBA-Excel: Date-Time Functions – Hour(), Minute(), Second()
Description:
The FormatDateTime function takes date as a parameter and returns the specified formatted date or time.
Format:
FormatDateTime(strDate[,strFormat])
Arguments:
Description:
The Day function takes date as a parameter and returns a number between 1 and 31, that is the day of the month.
Format:
Day(strDate)
Arguments:
Description:
The DateValue() function converts string to a date and return it.
Format:
DateValue(strString)
Arguments:
Description:
The DateSerial() function returns the Date type based on the parameters provided (year, month and date).
Format:
DateSerial(year,month,day)
Arguments:
Description:
The DatePart() function returns the part of given date based on the parameters provided.
Format:
DatePart(interval,date[,firstdayofweek[,firstweekofyear]])
Arguments:
Description:
The DateDiff() function returns the specified time interval difference between the two dates provided.
Format:
DateDiff(interval,date1,date2[,firstdayofweek[,firstweekofyear]])
Arguments:
Description:
The DateAdd () function adds the specified time interval to the date and returns a Variant (Date)
Format:
DateAdd(interval,number,date)
Arguments:
Description:
The IsDate() function determines whether expression can be converted into date and returns the Boolean value based upon that.
Format:
IsDate(expression)
Arguments:
Description:
The CDate() function converts a valid date and time expression to Type Date
Format:
CDate(date)
Arguments:
Date()
Description:
The Date() function returns a Current system date.
Format:
Date()
Read moreVBA-Excel: Date-Time Functions – Date(), Now() and Time()