Date and time functions handle various processes that support date and time value conversions. Seven days a week is represented by the following code value.
It's worth seven days a week.
1 Sunday
2 Monday
3 Tuesday
4 Wednesday
5 week Four
6 Friday
7 Saturday
An expression that converts the CDate CDate function into a date subclass. Usage is: result = CDate (expr)
Where result is the variant,expr of the date subclass is a valid data expression (you can use the IsDate function to determine whether an expression is valid).
The date date function extracts the current system date. Usage is: result = Date
Where result is a variant of the date subclass.
DateSerial the DateSerial function to set the date value of the date variable. Usage is: result = DateSerial (year,mongth,day)
Where result is the date subclass, the variant,year is between 100 and 9999, month is the number between 1 and 12, and day is the number between 1 and 31. A numeric expression in the correct range can be used as an argument. If the expression is invalid, add it to the next larger number.
The DateValue DateValue function converts an expression to a date subclass. Usage is: result = DateValue (expr)
Where result is the date subclass, the variant,expr is a string expression representing the date, such as November 30, 1997, or 11/30/1997.
The day day function extracts a date from a date expression. Usage is: result = day (expr)
Where result is an integer between 1 and 31, expr is an arbitrary date expression. If expr is null, NULL is returned.
The Hour Hour function extracts the hour value from an event expression. Usage is: result = Hour (expr)
Where result is an integer between 0 and 23, expr is an arbitrary-time expression. If expr is null, NULL is returned.
The Minute Minute function extracts the minutes value from an event expression. Usage is: result = Minute (expr)
Where result is an integer between 0 and 59, expr is an arbitrary-time expression. If expr is null, NULL is returned.
The Month Month function extracts the month value from an event expression. Usage is: result = Month (expr)
Where result is an integer between 1 and 12, representing 12 months of the year, expr is an arbitrary date expression. If expr is null, NULL is returned.
The now function extracts the current date and time based on the date and time currently set by the computer. The usage is: result = Now
In which result is an expression that contains a date and time.
The Second Second function extracts the second value from an expression. Usage is: result = Second (expr)
Where result is an integer between 0 and 59, expr is an arbitrary-time expression. If expr is null, NULL is returned.
The time period function extracts the current times of the system. Usage is: result = time
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service